delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/26/10:28:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,TW_CG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Vinay <post2vinay AT gmail DOT com>
Subject: Re: error: field =?utf-8?b?J3N0X2F0aW0n?= has incomplete type
Date: Tue, 26 Jun 2012 14:27:33 +0000 (UTC)
Lines: 52
Message-ID: <loom.20120626T162441-235@post.gmane.org>
References: <loom DOT 20120626T151207-115 AT post DOT gmane DOT org> <CA+sc5mk1ANCfiXanHtq5V+F4AnYLQd_Fh3+Z8Df3TCTuPH6e6w AT mail DOT gmail DOT com> <20120626141541 DOT GC22099 AT ednor DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019