NetBeans IDE的7.2.1:如何添加C ++ Boost库 [英] Netbeans IDE 7.2.1: How to add the c++ boost library

查看:332
本文介绍了NetBeans IDE的7.2.1:如何添加C ++ Boost库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关我的下一个任务,我需要线程在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库: http://sourceforge.net/projects/boost/files /boost/1.52.0/
(不知道它的问题在哪里提取这个太..我假设我需要设置的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安装程序从此处的http://netbeans.org/downloads/start.html?platform=windows&lang=en&option=cpp

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%

Project -> properties -> Linker ->Libraries -> Add option -> Other -> -l%libname%

路径库:

项目 - >属性 - >链接器 - >附加库目录

Project -> properties -> Linker -> Additional Library Directories

包括:

项目 - >属性 - > C ++编译器 - >包含目录 - >
  %paths_to_boost%

Project -> properties -> C++ Compiler -> Include Directories -> %paths_to_boost%

这篇关于NetBeans IDE的7.2.1:如何添加C ++ Boost库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆