|
Re: Add library paths on Eclipse IDE C/C++ 4.20.0 [message #1848390 is a reply to message #1848383] |
Tue, 30 November 2021 17:56 |
Tauno Voipio Messages: 742 Registered: August 2014 |
Senior Member |
|
|
It seems that you're using CMake to build the program, so the question is actually off-topic for Eclipse CDT.
To include an external module or library, you need to do two things:
- tell the compiler how to compile proper calls to the module. This is done by including the header file to the compilation,
- tell the linker where to get the library code from. This is done by adding the module object code or library code to the linker arguments.
If I interpreted your question properly, you have done the first thing, but not the second one. Please get the CMake documentation to see how to add the library to your CMakelists.txt.
--
Tauno Voipio
|
|
|
Powered by
FUDForum. Page generated in 0.03669 seconds