-
Linux timer functions
Hi all
In my application I'm using timer_create() & timer_settime() functions of linux.
but while compiling it gives me undefined reference for these two functions. I think I need to include some library while compiling....but I donno which library should be included while compiling (using gcc). [I have included <time.h> header file in my application]
please comment....
thanks & regards
onebrother
-
Are you including signal.h as well?
See the man pages for more information on those functions.
-
Linux timer functions
Yes I have included <signal.h> also
-
Linux timer functions
it should be
gcc -lrt <filename>.c