Netbeans IDE 7.2.1: How to add the c++ boost library(Netbeans IDE 7.2.1:如何添加 c++ boost 库)
问题描述
对于我的下一个任务,我需要在 C++ 中进行线程处理,并且已经了解到用于线程处理的 boost 库工作得相当好.我从未在 Netbeans 中添加过自定义库,并且希望有人可以为我提供一些可遵循的步骤,以便我能够#include 它并在我的课堂中使用它.
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?)
适用于 Windows 的 NetBeans 7.2.1 C/C++ 安装程序来自此处: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 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Netbeans IDE 7.2.1:如何添加 c++ boost 库
基础教程推荐
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- CString 到 char* 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 初始化列表*参数*评估顺序 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
