I am currently trying to use Eclipse to develop some code that I\'ve been doing in a text editor in C.
I am currently under Linux, compiling it with GCC with the fol
-lpthread
and -lrt
are passed to the linker, not the compiler. There should be some way in Library to add these as new libraries.
In the project properties, go to : C/C++ Build --> Settings.
Then "Tool Settings", select "Libraries" under "Linker".
You can add all your project libraries there (without the "-l"). Also in the lower part, you can add custom path to search libraries.