This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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


----- Original Message ----- 
From: "MariLiza Koukouli"
.
.
> $ gcc  -I./  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -DTABLE_PATH=\"/usr/local/lib\"  -Dlinux -DFOPEN64 -c

Is it appropriate to be defining "linux" (-Dlinux) and "FOPEN64" (-DFOPEN64)
on Windows XP ? Seems unlikely to me, but I really don't know.

> PBGroutines.c
> PBGroutines.c:7: error: parse error before "off64_t"
> PBGroutines.c:7: warning: data definition has no type

This is telling you that "__off64_t" (and hence "off64_t", also) is not a
recognised data type. That particular typedef gets included only because
"linux" is defined.

> 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

Again, a similar error to the above - one that would not arise if FOPEN64
was not defined. The other errors probably arise as a flow-on effect of
these errors.

If you *do* need to define "linux" and/or "FOPEN64" then you need to find
out why the above types are unknown.

Cheers,
Rob


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