X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: CygWin - GCC compiler error Date: Fri, 21 Jul 2006 17:18:36 +0100 Message-ID: <000301c6ace1$519b2920$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20060721145901.78426.qmail@web54311.mail.yahoo.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On 21 July 2006 15:59, MariLiza Koukouli wrote: > Hi all, > > I am using the CygWin environent, CYGWIN_NT-5.1, i.e. > on Windows XP. I am trying to compile a piece of code > that contains both F77 and C subroutines. G77 works > fine and compiles without problems but GCC complains > about something that means absolutely nothing to me. The reason that g77 works fine but gcc complains is because the code in the fortran files is correct, but the code in the particular C file you're compiling is buggy. > gcc -I./ -DTABLE_PATH=\"/usr/local/lib\" -Dlinux > -DFOPEN64 -c PBGroutines.c > PBGroutines.c:7: error: parse error before "off64_t" > PBGroutines.c:7: warning: data definition has no type > or storage class > In file included from PBGroutines.c:12: > PBGroutines.h:9: error: parse error before "ftello64" > PBGroutines.h:9: warning: data definition has no type > or storage class > PBGroutines.h:28: error: parse error before "off64_t" > PBGroutines.h:28: warning: no semicolon at end of > struct or union > PBGroutines.h:89: error: parse error before '}' token > PBGroutines.h:89: warning: data definition has no type > or storage class > PBGroutines.c:90: error: parse error before '*' token > PBGroutines.c:90: warning: data definition has no type > or storage class > PBGroutines.c:91: error: parse error before '*' token > PBGroutines.c:91: warning: data definition has no type > or storage class > PBGroutines.c: In function `pbgindx': > PBGroutines.c:127: error: parse error before "space" > > Does this mean anything to anyone? It means that PBGroutines.c has failed to include some vital header or other. Whatever the word before "off64_t" on line 7 is, it should have been defined and it hasn't been. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/