Netbeans: how to include other c++ static library project?

前端 未结 1 1945
无人共我
无人共我 2020-12-30 11:07

I am really new to c++ and am using Netbeans for now.

I managed to create a Sign.h and Sign.cpp containing a working class Sign. I added these to a Cons

相关标签:
1条回答
  • 2020-12-30 11:49

    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

    0 讨论(0)
提交回复
热议问题