免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2144 | 回复: 3
打印 上一主题 下一主题

找不到stdio_iso.h文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-18 09:37 |只看该作者 |倒序浏览
刚安装的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文件在哪个安装包中。网上有说是系统没有完全安装的原因,难不成要重新装系统?

论坛徽章:
0
2 [报告]
发表于 2010-11-18 17:28 |只看该作者
本帖最后由 bjsfeng 于 2010-11-19 09:20 编辑

/usr/include/iso路径下~

如果没有的话是不是安装的时候没有最大化?

pkg SUNWhea 包吧,试试

论坛徽章:
0
3 [报告]
发表于 2010-11-19 10:31 |只看该作者
确实是没有最大化安装,系统重新装了
不过除了重新安装系统,还可以如何解决呢

论坛徽章:
0
4 [报告]
发表于 2010-11-19 12:56 |只看该作者
pkg SUNWhea 包


试试~~~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP