This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: CygWin - GCC compiler error


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]