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
Add -lrt to your link command. timer_create and timer_settime are not part of the C Standard library.
-lrt
timer_create
timer_settime
gcc -fPIC -shared libexample.c -lrt -o libexample.so gcc -L. example.c -lexample -o example