问题描述
有关我的下一个任务,我需要线程在C ++中,并已阅读了线程Boost库的工作原理相当不错。我从来没有加入自定义库Netbeans和希望有人能向我提供了一些步骤,以遵循让我#包括它在我的课上使用它。
For my next assignment I require threading in C++ and have read that the boost library for threading works fairly well. I've never added a custom library to Netbeans and was hoping someone could provide me some steps to follow in order to allow me to #include it and use it in my class.
到目前为止,我已经下载了以下内容:
从这里Boost库:
(不知道它的问题在哪里提取这个太..我假设我需要设置的NetBeans到它的地方我的包的属性中指向?)
So far I've downloaded the following:Boost library from here: http://sourceforge.net/projects/boost/files/boost/1.52.0/(Not sure if it matters where I extract this too.. I'm assuming I need to set NetBeans to point at it somewhere within the properties of my package?)
7.2.1的NetBeans C / C ++的Windows安装程序从此处的
NetBeans 7.2.1 C/C++ Installer for Windows from here: http://netbeans.org/downloads/start.html?platform=windows&lang=en&option=cpp
与编译:MinGW的
任何帮助将是巨大的。
谢谢!
Any help would be great.Thanks!
推荐答案
链接库:
项目 - >属性 - >链接器 - >库 - >添加选项 - >其他 - >
-l%LIBNAME%
路径库:
项目 - >属性 - >链接器 - >附加库目录
包括:
项目 - >属性 - > C ++编译器 - >包含目录 - >
%paths_to_boost%
这篇关于NetBeans IDE的7.2.1:如何添加C ++ Boost库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!