【问题标题】:"cannot find stddef.h" error when compiling Ipopt example in ubuntu 16.04在 ubuntu 16.04 中编译 Ipopt 示例时出现“找不到 stddef.h”错误
【发布时间】:2018-06-11 01:31:13
【问题描述】:

我在 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】:

    我可以通过这样做来解决这个问题

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

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

    试试这个link

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-30
      • 1970-01-01
      • 2018-10-21
      • 1970-01-01
      • 2019-06-17
      • 1970-01-01
      • 2017-07-15
      • 1970-01-01
      相关资源
      最近更新 更多