This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: gcc error
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Linux'" <linux at gateway dot ege dot edu dot tr>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 29 Jul 2002 15:02:20 +0100
- Subject: RE: gcc error
Shahin wrote:
> when I am trying to compile simple C file with headers errors
> are generated....
:
> /usr/include/libio.h:263: parse error before `size_t'
That's very odd - it looks like size_t hasn't been defined yet. This is
usually done in <sys/types.h> via <stddef.h> but these should be
included automatically by any other header files that need them. Try
adding:
#include <stddef.h>
to the very top of your source.
However, this is a problem with your C library and not with GCC. (Or it
may be an interaction problem - the C library assumes something about
GCC or vice versa.)
I think libc6 has been obsoleted by glibc 2.x but I understand updating
a Linux C library is a fairly complex and nasty operation (and that
libc6 and glibc aren't binary compatible?). However, the C library and
compiler supplied together in a distribution *ought* to cooperate
properly.
Good luck,
Rup.