[英]How do I add a library to my NetBeans C++ project?
I want to use the boost library in order to use some of its functions but I don't know how to do so and cannot seem to find an answer. 我想使用boost库来使用其某些功能,但是我不知道该怎么做,而且似乎找不到答案。
I'm currently using NetBeans 8.0.1 ,any help is appreciated. 我当前使用的是NetBeans 8.0.1,不胜感激。
You have to add two things: 您必须添加两件事:
Go to … 去 …
Project Properties -> C++ Compiler -> Include Directories
add the header's directory path there. 在其中添加标题的目录路径 。
Go to … 去 …
Project Properties -> Linker -> Additional Libraries Directory
and add the directory path - that's where your library binaries are. 并添加目录路径 -这是您的库二进制文件所在的位置。
Next add your library at: 接下来,在以下位置添加您的库:
Libraries
. Libraries
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.