在 Netbeans 7.0 中包含 C++ 库 [英] Include C++ library in Netbeans 7.0

查看:38
本文介绍了在 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++ 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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