Include a library to GNU / LLVM based project
To add a library to the project:
-
Open the Project Settings by click to button.
-
Select the item
. -
Click to Add… button () in the Library search path input box to add directories containing the library file(s).
-
Click to Add… button () in the Library input box and add library name.
The name convention for libraries is
lib<library name>.a
. That means that you do not pass the prefix lib and the extension .a to the linker, just a library name.
Fig. 1. The project settings - Libraries