刚安装的solaris 8,为了测试下gcc是否安装成功,就随便编译了以个程序,结果就出现下面的提示
bash-3.2# gcc hello.c -o hello
In file included from hello.c:1:
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:36:27: iso/stdio_iso.h: No such file or directory
In file included from hello.c:1:
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:194: error: syntax error before '*' token
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:229: error: syntax error before '*' token
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:230: error: syntax error before '*' token
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:236: error: syntax error before "size_t"
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:241: error: syntax error before "size_t"
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:250: error: syntax error before '*' token
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:252: error: syntax error before '*' token
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:276: error: syntax error before '*' token
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:285: error: syntax error before '*' token
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:286: error: syntax error before "FILE"
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/include/stdio.h:287: error: syntax error before '*' token
hello.c:2:20: stdlib.h: No such file or directory
我确实在系统中没有找到stdio_iso.h文件,也没有找到stdlib.h之类的头文件,网上搜了下,也没找到结果,想问下,stdio_iso.h文件在哪个安装包中。网上有说是系统没有完全安装的原因,难不成要重新装系统?
另外关于CC编译器的问题
http://topic.csdn.net/u/20101112/17/e4c07cfd-af89-44e2-85fc-1d64eefa673a
虽然做了链接过去,但执行./configure是问题依旧存在
第一次接触solaris系统,不懂的实在太多了,希望大家不吝赐教,再次谢谢了!!
------解决方案--------------------------------------------------------
这个问题我遇到过,安装不完整,少东西了,建议选择完全重新安装!!!!!!!!!!!!!!!!!!!!!!!
------解决方案--------------------------------------------------------
这里用solaris的人好像少 你去chinaunix论坛上去问问。