I\'m trying to compile an object code with a reference to one lib. This is the code of libexample.c:
#include \"libexample.h\" #include #include
If you are using cmake, make sure you include the libraries using target_link_libraries(). For e.g., timer functions like timer_create() you need "rt" and for pthread you need "pthread" added using target_link_libraries().
target_link_libraries()
timer_create()
"rt"
pthread
"pthread"