Properties, C/C++ Settings, Tools Settings, GCC Linker, Libraries

Set the static/sharted libraries to link

Info: The C library is linked by default

Tips: Use variable ${ProjDirPath} to enter project-relative paths

Option Description
Libraries (-l) Specify the libraries name to search when linking. If your static library is libmylib.a or your shared library is libmylib.so, only enter the name of the library without the "lib" prefix nor the extension, in this case mylib.
Library search path (-L) Specify the linker search directory. Order matters if same libraries are in multiple directories. The first found is chosen.
Use C math library (-lm) Add libmath to the linking