This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: CygWin - GCC compiler error
- From: "Sisyphus" <sisyphus1 at optusnet dot com dot au>
- To: "MariLiza Koukouli" <marilizakoukouli at yahoo dot com>, "Segher Boessenkool" <segher at kernel dot crashing dot org>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 24 Jul 2006 09:39:36 +1000
- Subject: Re: CygWin - GCC compiler error
- References: <20060723113047.74898.qmail@web54306.mail.yahoo.com>
----- 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