Looking for help

From: Norberto Valverde Llanos <norberto_at_lapositiva.com.pe>
Date: Fri, 12 Nov 1999 11:45:22 -0500

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

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT