【问题标题】:Boost libraries in netbeans 7.1.1netbeans 7.1.1 中的 Boost 库
【发布时间】:2012-04-12 05:12:29
【问题描述】:

我需要帮助以在 netbeans 7.1.1 中编译和配置 boost 库,让我补充一下,我确实在编译器选项中添加了提取 boost zip 文件夹的路径,但它没有帮助我,当我包括

  #include <boost/thread.hpp>

编译时出现错误

  fatal error :no such file or directory

只是在我写的时候补充一下:-

  #include <boost/thread.hpp>//does shows the options out of which thread.hpp is one

大家帮忙!!!

【问题讨论】:

    标签: c++ boost compilation configure


    【解决方案1】:

    boost::thread 除了头文件外,还需要一个编译库。 (我假设您使用的是 Windows 并拥有 netbeans c++ 插件)要为 netbeans 编译库,您需要使用 cygwin 并按照boost.org 上的步骤操作,使用toolset=gcc 标志以及您需要的任何其他标志拨打b2 install时。对于每个步骤,在运行命令之前尝试--help

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多