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: parse error before "size_t"


You may need to include unistd.h into your source file.

Thanks,
Lyle Taylor

-----Original Message-----
From: Ojasi [mailto:ojasi_kul@yahoo.com]
Sent: Thursday, September 18, 2003 7:16 AM
To: gcc-help@gcc.gnu.org
Subject: parse error before "size_t"

Hello,

After compiling my small test program ie.
gcc -I/home/dummy/linux/include test1.c -o test1

I am getting following errors.


In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from test1.c:2:
/usr/include/gconv.h:72: parse error before "size_t"
/usr/include/gconv.h:88: parse error before "size_t"
/usr/include/gconv.h:97: parse error before "size_t"
/usr/include/gconv.h:174: parse error before "size_t"
/usr/include/gconv.h:177: parse error before '}' token
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from test1.c:2:
/usr/include/_G_config.h:47: field `__cd' has
incomplete type
/usr/include/_G_config.h:50: field `__cd' has
incomplete type
In file included from /usr/include/stdio.h:72,
                 from test1.c:2:
/usr/include/libio.h:350: parse error before "size_t"
/usr/include/libio.h:359: parse error before "size_t"
/usr/include/libio.h:467: parse error before
"_IO_sgetn"
/usr/include/libio.h:467: parse error before "size_t"


(I have to add include path -I/home... because on my
machine I have two linux kernels, one patched 2.4.18
in my dummy directory and 2.4.20 the origianl one. I
want to use patched 2.4.18)

How should I compile my program to avoid these errors.

Thanks,
Ojasi


________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com


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