tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Looking for help
@ 1999-11-12 16:45 Norberto Valverde Llanos
  0 siblings, 0 replies; only message in thread
From: Norberto Valverde Llanos @ 1999-11-12 16:45 UTC (permalink / raw)
  To: tru64-unix-managers


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@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-11-12 16:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-12 16:45 Looking for help Norberto Valverde Llanos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox