netbeans下如何使用库

来源:互联网 发布:java word在线编辑 编辑:程序博客网 时间:2024/06/05 05:18

做现在这个项目时遇到的,下面是解答。由于时间比较紧就先不翻译了。

来自:http://stackoverflow.com/questions/3264294/netbeans-how-to-include-other-c-static-library-project

You need two files from a library. The library file (.lib on windows, .a on linux) and the include file (.h files).

The Options => Build => Linker => Libraries is only for the library file. You also need to set the path for the includes under File => Project Properties => Build => C++ Compiler => General => Include Directories



另外,使用boost库的方法见http://www.wuzesheng.com/?p=965 (正则表达式),其中关于如何添加系统环境变量的见http://www.cnblogs.com/amboyna/archive/2008/03/08/1096024.html 我用的是第二个办法:

2、修改profile文件:
#vi /etc/profile



原创粉丝点击