?cause? /usr/include/bits/stat.h field 'st_atim' has incomplete type [message #222088] |
Sat, 16 August 2008 20:34 |
Eclipse User |
|
|
|
I was having troubles with the eclipse IDE/CDT crashing, and someone
suggested upgrading (and configuring with galternatives) the Java on my
ubuntu system. I also updated/reinstalled "build-essential" and (I think
it was) "lib32" packages at the suggestion of one suggestion or other.
After doing so, when I try to compile my application (which compiled and
ran just before the above), I get 7 compile errors (multiple instances of
the following 3):
/usr/include/bits/stat.h field 'st_atim' has incomplete type
/usr/include/bits/stat.h field 'st_ctim' has incomplete type
/usr/include/bits/stat.h field 'st_mtim' has incomplete type
I cannot decode what the problem is, but after reviewing all the links
provided to me by google on these lines of text, the likely culprit is
<time.h> not being included by <sys/stat.h> in certain situations, and
<time.h> is where the required definition is. At least that's what my best
guess is from reading the messages and replies.
One of my files does #include <time.h> and <sys/time.h>, but none of my
files #include <sys/stat.h> --- at least not directly. Of course, some
other file that my files include might include <sys/stat.h>.
Any idea what the problem is?
|
|
|
Powered by
FUDForum. Page generated in 0.07880 seconds