help on gcc compiling problem

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

 



After installing gcc I run a simple c program to test.
 I hav ethe following error msg.

'% gcc test.c
In file included from test.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:36:27:
iso/stdio_iso.h: No such file or directory
In file included from test.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:194:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:229:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:230:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:236:
parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:241:
parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:250:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:252:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:276:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:285:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:286:
parse error before "FILE"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/stdio.h:287:
parse error before '*' token
'

The program is

% more test.c
#include "stdio.h"

int main ()
{

  ;
  return 0;
}


gcc version is 

 % gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
Configured with: ../configure
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
--disable-nls
Thread model: posix
gcc version 3.1


Please help.

yi



__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

[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