public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* error: field 'st_atim' has incomplete type
@ 2012-06-26 13:20 Vinay
  2012-06-26 13:54 ` Earnie Boyd
  0 siblings, 1 reply; 5+ messages in thread
From: Vinay @ 2012-06-26 13:20 UTC (permalink / raw)
  To: cygwin

I am trying to compile a native linux application in windows using 
cygwin(CYGWIN_NT-6.1-WOW64 ).

But I am faced with strange error below

/usr/include/cygwin/stat.h:72:17: error: field 'st_atim' has incomplete type
/usr/include/cygwin/stat.h:73:17: error: field 'st_mtim' has incomplete type
/usr/include/cygwin/stat.h:74:17: error: field 'st_ctim' has incomplete type
/usr/include/cygwin/stat.h:77:17: error: field 'st_birthtim' has incomplete type

The error is persistant even after including time.h, types.h and stat.h
I tried various order of include files. None yielded any fruitful result.

It seems the declaraion of the st_atim is not included with some conditional 
compile directive, can anyone has any idea on this?

Regards
Vinay


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: field 'st_atim' has incomplete type
  2012-06-26 13:20 error: field 'st_atim' has incomplete type Vinay
@ 2012-06-26 13:54 ` Earnie Boyd
  2012-06-26 14:15   ` Christopher Faylor
  0 siblings, 1 reply; 5+ messages in thread
From: Earnie Boyd @ 2012-06-26 13:54 UTC (permalink / raw)
  To: cygwin

On Tue, Jun 26, 2012 at 9:16 AM, Vinay wrote:
> I am trying to compile a native linux application in windows using
> cygwin(CYGWIN_NT-6.1-WOW64 ).
>
> But I am faced with strange error below
>
> /usr/include/cygwin/stat.h:72:17: error: field 'st_atim' has incomplete type
> /usr/include/cygwin/stat.h:73:17: error: field 'st_mtim' has incomplete type
> /usr/include/cygwin/stat.h:74:17: error: field 'st_ctim' has incomplete type
> /usr/include/cygwin/stat.h:77:17: error: field 'st_birthtim' has incomplete type
>
> The error is persistant even after including time.h, types.h and stat.h
> I tried various order of include files. None yielded any fruitful result.
>
> It seems the declaraion of the st_atim is not included with some conditional
> compile directive, can anyone has any idea on this?

We have no idea since you didn't give a sample code.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: field 'st_atim' has incomplete type
  2012-06-26 13:54 ` Earnie Boyd
@ 2012-06-26 14:15   ` Christopher Faylor
  2012-06-26 14:28     ` Vinay
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Faylor @ 2012-06-26 14:15 UTC (permalink / raw)
  To: cygwin

On Tue, Jun 26, 2012 at 09:54:30AM -0400, Earnie Boyd wrote:
>On Tue, Jun 26, 2012 at 9:16 AM, Vinay wrote:
>> I am trying to compile a native linux application in windows using
>> cygwin(CYGWIN_NT-6.1-WOW64 ).
>>
>> But I am faced with strange error below
>>
>> /usr/include/cygwin/stat.h:72:17: error: field 'st_atim' has incomplete type
>> /usr/include/cygwin/stat.h:73:17: error: field 'st_mtim' has incomplete type
>> /usr/include/cygwin/stat.h:74:17: error: field 'st_ctim' has incomplete type
>> /usr/include/cygwin/stat.h:77:17: error: field 'st_birthtim' has incomplete type
>>
>> The error is persistant even after including time.h, types.h and stat.h
>> I tried various order of include files. None yielded any fruitful result.
>>
>> It seems the declaraion of the st_atim is not included with some conditional
>> compile directive, can anyone has any idea on this?
>
>We have no idea since you didn't give a sample code.

Ditto, and we'd also need the gcc command line.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: field 'st_atim' has incomplete type
  2012-06-26 14:15   ` Christopher Faylor
@ 2012-06-26 14:28     ` Vinay
  2012-06-26 14:42       ` Christopher Faylor
  0 siblings, 1 reply; 5+ messages in thread
From: Vinay @ 2012-06-26 14:28 UTC (permalink / raw)
  To: cygwin

Christopher Faylor <cgf-use-the-mailinglist-please <at> cygwin.com> writes:

> 
> On Tue, Jun 26, 2012 at 09:54:30AM -0400, Earnie Boyd wrote:
> >On Tue, Jun 26, 2012 at 9:16 AM, Vinay wrote:
> >> I am trying to compile a native linux application in windows using
> >> cygwin(CYGWIN_NT-6.1-WOW64 ).
> >>
> >> But I am faced with strange error below
> >>
> >> /usr/include/cygwin/stat.h:72:17: error: field 'st_atim' has incomplete 
type
> >> /usr/include/cygwin/stat.h:73:17: error: field 'st_mtim' has incomplete 
type
> >> /usr/include/cygwin/stat.h:74:17: error: field 'st_ctim' has incomplete 
type
> >> /usr/include/cygwin/stat.h:77:17: error: field 'st_birthtim' has incomplete 
type
> >>
> >> The error is persistant even after including time.h, types.h and stat.h
> >> I tried various order of include files. None yielded any fruitful result.
> >>
> >> It seems the declaraion of the st_atim is not included with some 
conditional
> >> compile directive, can anyone has any idea on this?
> >
> >We have no idea since you didn't give a sample code.
> 
> Ditto, and we'd also need the gcc command line.
> 
> cgf
> 
> 
voila I created a sample file to recreate this issue anyway, error is with 
inclusion of timeb.h, dont know why!!. 

below is sample cpp file, which will throw similar error!

#include <sys/timeb.h>
#include <sys/stat.h>
#include <stdio.h>


struct stat hello;

int main()
{
	printf("Hello Here!\n");
	return 0;
}




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: field 'st_atim' has incomplete type
  2012-06-26 14:28     ` Vinay
@ 2012-06-26 14:42       ` Christopher Faylor
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Faylor @ 2012-06-26 14:42 UTC (permalink / raw)
  To: cygwin

On Tue, Jun 26, 2012 at 02:27:33PM +0000, Vinay wrote:
>Christopher Faylor <cgf-use-the-mailinglist-please <at> cygwin.com> writes:
>
>> 
>> On Tue, Jun 26, 2012 at 09:54:30AM -0400, Earnie Boyd wrote:
>> >On Tue, Jun 26, 2012 at 9:16 AM, Vinay wrote:
>> >> I am trying to compile a native linux application in windows using
>> >> cygwin(CYGWIN_NT-6.1-WOW64 ).
>> >>
>> >> But I am faced with strange error below
>> >>
>> >> /usr/include/cygwin/stat.h:72:17: error: field 'st_atim' has incomplete 
>type
>> >> /usr/include/cygwin/stat.h:73:17: error: field 'st_mtim' has incomplete 
>type
>> >> /usr/include/cygwin/stat.h:74:17: error: field 'st_ctim' has incomplete 
>type
>> >> /usr/include/cygwin/stat.h:77:17: error: field 'st_birthtim' has incomplete 
>type
>> >>
>> >> The error is persistant even after including time.h, types.h and stat.h
>> >> I tried various order of include files. None yielded any fruitful result.
>> >>
>> >> It seems the declaraion of the st_atim is not included with some 
>conditional
>> >> compile directive, can anyone has any idea on this?
>> >
>> >We have no idea since you didn't give a sample code.
>> 
>> Ditto, and we'd also need the gcc command line.
>> 
>> cgf
>> 
>> 
>voila I created a sample file to recreate this issue anyway, error is with 
>inclusion of timeb.h, dont know why!!. 
>
>below is sample cpp file, which will throw similar error!
>
>#include <sys/timeb.h>
>#include <sys/stat.h>
>#include <stdio.h>
>
>
>struct stat hello;
>
>int main()
>{
>	printf("Hello Here!\n");
>	return 0;
>}

Looks like a bug in Cygwin's header files.  If you put the sys/timeb.h after the
sys/stat.h it should work better.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-26 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26 13:20 error: field 'st_atim' has incomplete type Vinay
2012-06-26 13:54 ` Earnie Boyd
2012-06-26 14:15   ` Christopher Faylor
2012-06-26 14:28     ` Vinay
2012-06-26 14:42       ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).