parse error before "size_t"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux