在ubuntu 16.04中编译Ipopt示例时出现“找不到stddef.h”错误

问题描述 投票:0回答:1

我在ubuntu 16.04中安装了Ipopt debian软件包。当我尝试在Ipopt文档中给出示例问题时,我收到以下错误

/usr/include/coin/IpSmartPtr.hpp:18: error: #error "don't have header file for stddef"

我希望有些是依赖性问题。我该如何解决这个问题?

ubuntu standard-library ipopt
1个回答
0
投票

我可以通过做任何事情来解决这个问题

#define HAVE_CSTDDEF
#include <IpTNLP.hpp>
#undef HAVE_CSTDDEF

要么

#define HAVE_STDDEF_H
#include <IpTNLP.hpp>
#undef HAVE_STDDEF_H

试试这个link

© www.soinside.com 2019 - 2024. All rights reserved.