开发者

Include C++ library source in Netbeans project?

开发者 https://www.devze.com 2023-03-26 19:27 出处:网络
Is there a \"good\" way to directly include a library\'s source in a Netbeans project? WhenI try to do it, I add the include directory in the Linker options and src in the source directories but I get

Is there a "good" way to directly include a library's source in a Netbeans project? When I try to do it, I add the include directory in the Linker options and src in the source directories but I get a ton of "undefined reference" errors unless I add the folder into the project using right click>add existin开发者_如何学Pythong items from folder.

Is there a better way to do this without having all the the code in the project ?

Thanks a lot in advance for your answers


Try doing this:

Select Tools->Libraries from the menu, create a new library there, then on right side click "add Jar/folder" to insert your folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号