public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* parse error before "size_t"
@ 2003-09-18 13:16 Ojasi
  0 siblings, 0 replies; 2+ messages in thread
From: Ojasi @ 2003-09-18 13:16 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: parse error before "size_t"
@ 2003-09-18 17:17 lrtaylor
  0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2003-09-18 17:17 UTC (permalink / raw)
  To: ojasi_kul, gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-18 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18 13:16 parse error before "size_t" Ojasi
2003-09-18 17:17 lrtaylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).