delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/21/12:18:52

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
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
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
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 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/

- Raw text -


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