I was experimenting with a few timer functions and ended up with the above linker error. Someone on the net suggested to pass -lrt to gcc and it worked! What is ‘-lrt’ and how did it help to overcome this error?
I looked into gcc –help but couldn’t find these options and the man page of gcc ( which is too huge ) also dint give much insight into this.
It adds the rt library to the linker (see librt) which amongst other things defines
timer_getoverrun.