1

我需要在 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

任何帮助的人!

4

1 回答 1

0

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

于 2012-04-11T21:12:29.407 回答