Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The linker cannot find the libraries in the directories you specified. Where are the files located?

You can check with VERBOSE=1 make what the exact linker line is. There should be an entry like -L<dir to library> -l<library_name>.

Your cmake file should only need to contain include_directories() for the directory where the header files are (e.g. /usr/include, and other system includes should not need to be listed here). link_directories should only contain the directory where the library files are.