Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » ?cause? /usr/include/bits/stat.h field 'st_atim' has incomplete type
?cause? /usr/include/bits/stat.h field 'st_atim' has incomplete type [message #222088] Sat, 16 August 2008 20:34
Eclipse UserFriend
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?
Previous Topic:how to specify relative path include directories and/or files
Next Topic:Error: ld: Symbol(s) not found
Goto Forum:
  


Current Time: Mon May 12 09:28:33 EDT 2025

Powered by FUDForum. Page generated in 0.07880 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top