Hi managers!
I tried to make a small program for getting the time(hour, minutes, seconds
and miliseconds), but, when I compile the program it sends an error
message. The program code_example is developed in "C" and is the
following:
script.c
_________________________________________________________________________
#include <time.h>
#include <timers.h>
struct timespec *tp1=NULL;
int hora=0;
void main ()
{
hora= clock_gettime(CLOCK_REALTIME,tp1);
printf("%i",hora);
}
___________________________________________________________________________
_
The error message is the following:
root_at_alpha> cc script.c -o script
ld:
Unresolved:
clock_gettime
___________________________________________________________________________
__
I will thank you very much if you could send some helpful advices about
this problem.
Norberto Valverde
Lima - Peru
Received on Fri Nov 12 1999 - 16:50:12 NZDT