LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2008, 08:29 PM   #1
maxreason
Member
 
Registered: Dec 2007
Location: phobos, mars
Distribution: 64-bit linux mint v20
Posts: 259

Rep: Reputation: 17
Question ?cause of error? /usr/include/bits/stat.h field 'st_atim' has incomplete type


What is the cause of the following compile errors?

/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

7 instances of these 3 errors are reported during the compile process.

----- background -----
I want to continue developing a C/C++ program that compiled and worked correctly on fedora8 with old eclipse IDE/CDT several months ago. I built a new computer with a quad-core phenom 9850 and installed the latest version of 32-bit ubuntu (8.04.1 LTS) and the latest version of the eclipse IDE/CDT (ganymede) and the latest version of java (1.6.0_06-b02) - which eclipse needs to function.

My code includes <time.h> and <sys/time.h>, but not much else that seems likely to cause such a problem. Besides, the errors imply (to me) some kind of internal inconsistency in the system headers (and/or the symbols they #define).

I am far from being a guru in these areas, but I know lots of you are. So, "please help!". Thanks. (I'm probably wrong, but the problem might be with "timespec").
 
Old 08-16-2008, 10:27 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
try adding the following define before your includes

#define _GNU_SOURCE
 
Old 08-17-2008, 01:48 AM   #3
maxreason
Member
 
Registered: Dec 2007
Location: phobos, mars
Distribution: 64-bit linux mint v20
Posts: 259

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by estabroo View Post
try adding the following define before your includes

#define _GNU_SOURCE
That made no difference. Same results.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: array type has incomplete element type duduarbel Programming 8 05-27-2008 12:25 PM
error: array type has incomplete element type nasim751 Linux - Software 1 04-14-2008 09:02 PM
error: field has incomplete type halturata Programming 4 04-11-2008 05:01 PM
Question about /usr/include/bits/typesizes.h stefaandk Linux - General 2 07-21-2005 07:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration