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 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: References: <20120626141541 DOT GC22099 AT ednor DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 #include #include 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