delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_CG |
X-Spam-Check-By: | sourceware.org |
X-Mail-Handler: | MailHop Outbound by DynDNS |
X-Report-Abuse-To: | abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) |
X-MHO-User: | U2FsdGVkX19PE/nds3l4Wmld0lhDrLRA |
Date: | Tue, 26 Jun 2012 10:41:51 -0400 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: error: field 'st_atim' has incomplete type |
Message-ID: | <20120626144151.GD22099@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
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> <loom DOT 20120626T162441-235 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20120626T162441-235@post.gmane.org> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |