From: sarkar@ponder.csci.unt.edu (Falguni Sarkar)
Subject: Help in computing time....
Date: 1995/06/21 [thread overview]
Message-ID: <3s884v$7qj@hermes.acs.unt.edu> (raw)
I am using a DEC Alpha machine. When I try to compile the
following code I am facing problems.
#include <stdio.h>
#include <time.h>
time_t tim1,*tp;
main(){
tim1=time(tp);
if(tp==NULL)
printf("tp is NULL\n");
}
If I use cc then tp is always returned as NULL. If I use
gcc for compilation, no executable file gets created and
the following message is displayed.
In file included from /usr/include/sys/timers.h:99,
from /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.6.3/include/time.h:174,
from sample.c:2:
/usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.6.3/include/sys/signal.h:225: field `sigev_value' has incomplete type
I need to evalute the physical time between two successive points
in one of my experimental program. Hence I am using the function
time(), which is returning me always NULL values or the programs
do not compile. I will highly appreciate any suggestion about
how to fix this.
Thanks in advance,
Falguni Sarkar.
E-mail : sarkar@ponder.csci.unt.edu
--
Falguni Sarkar
Dept. of Computer Science
University of North Texas
Denton, TX 76203
next reply other threads:[~1995-06-21 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-21 4:00 Falguni Sarkar [this message]
1995-06-21 4:00 ` Help in computing time Michael W. Walker
1995-06-21 4:00 ` Derick J.R. Qua-Gonzalez
1995-06-27 4:00 ` D'Arcy J.M. Cain
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox