找不到stdio_iso.h文件
刚安装的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文件在哪个安装包中。网上有说是系统没有完全安装的原因,难不成要重新装系统?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
pkg SUNWhea 包
试试~~~~~
确实是没有最大化安装,系统重新装了
不过除了重新安装系统,还可以如何解决呢
本帖最后由 bjsfeng 于 2010-11-19 09:20 编辑
/usr/include/iso路径下~
如果没有的话是不是安装的时候没有最大化?
pkg SUNWhea 包吧,试试