Author
|
Topic: resource.h
|
Tom
Junior Member
Member # 581
|
posted January 02, 2003 08:37 PM
I am having trouble compling some code. When trying To Make I get the Following... In file included from comm.c:21: /usr/include/sys/resource.h:81: field `ru_utime' has incomplete type /usr/include/sys/resource.h:82: field `ru_stime' has incomplete type I checked The the resource.h file, and It "looks" ok... struct rusage { struct timeval ru_utime; /* user time used */ struct timeval ru_stime; /* system time used */ ... Can Anyone Give any ideas?
Posts: 3 | Registered: Jan 2003
| IP: Logged
|
|
|
|
<trevorsm>
unregistered
|
posted January 03, 2003 09:04 PM
I checked out the resource.h header file on my computer and I didn't find a declaration for timeval either. I wrote a quick mock up program that included the code...code:
struct parent { struct child num_one; struct chile num_two; };
...and surely enough, I was given an "incomplete type" error. From that, two things come two mind--this file must be meant to be included into another file which does define the timeval structure and the person who wrote this file was using very bad form. With all that said, I need a lot more info to figure out what's going on... What does the file that includes resources.h look like? What other headers does it include? Has anyone else heard of tis timeval structure? I've never heard of or used it before.
IP: Logged
|
|
|