Include C++ library in Netbeans 7.0(在 Netbeans 7.0 中包含 C++ 库)
问题描述
我正在我的项目中尝试使用 这个库 (RollPlay) 但我没有知道如何将它包含在我的 Netbeans C++ 项目中.我只是将 .dll 和 .h 文件添加到项目文件夹中,将文件添加到项目中吗?我是 Netbeans 的新手并使用非内置库.
I'm trying the use this library (RollPlay) in my project but I don't know how to include it in my C++ project in Netbeans. Would I just add the .dll and .h files into the project folder, add the files to the project? I'm new to Netbeans and using non built-in libraries.
推荐答案
库通常驻留在其自己的安装目录中,因此您需要将 NB 指向该位置.如果您在项目"窗口中右键单击项目名称,您将有一个属性选项.
A library would normally reside in its own installation directory so you would need to point NB to where that is. If you right-click the project name in the "Projects" window, you'll have a Properties option.
- 选择 Build/C++ 编译器选项以添加 .h 文件的目录.
- 选择 Build/Linker 以添加 dll 文件的目录.
这篇关于在 Netbeans 7.0 中包含 C++ 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Netbeans 7.0 中包含 C++ 库
基础教程推荐
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- CString 到 char* 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
