Hello Team,
I am trying to implement a software timer, as part of this, I have used
signal(SIGALRM, event_start_init_callback);
alarm(10); // To invoke the call back handler after 10sec.
But I am getting undefined reference to `alarm' error.
I have included unistd.h. But still linked is unable to find the alarm call.
I verified that, alarm is defined in sys/unistd.h
Can someone please let me know, what I am missing here?
Regards,
San