在Netbeans 7.0中包含C ++库 [英] Include C++ library in Netbeans 7.0
本文介绍了在Netbeans 7.0中包含C ++库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的项目中尝试使用此库(RollPlay),但我不在知道如何将它包含在我的C ++项目在Netbeans。我只需要将.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 ++库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文