找不到stdio_iso.h文件
时间:2010-11-17
来源:互联网
刚安装的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.html
虽然做了链接过去,但执行./configure是问题依旧存在
第一次接触solaris系统,不懂的实在太多了,希望大家不吝赐教,再次谢谢了!!
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.html
虽然做了链接过去,但执行./configure是问题依旧存在
第一次接触solaris系统,不懂的实在太多了,希望大家不吝赐教,再次谢谢了!!
作者: lengfeng32 发布时间: 2010-11-17
反正是新装的 就重新安装一下呗 安装的时候就把编译器选上
作者: steptodream 发布时间: 2010-11-17
引用 1 楼 steptodream 的回复:
反正是新装的 就重新安装一下呗 安装的时候就把编译器选上
反正是新装的 就重新安装一下呗 安装的时候就把编译器选上
当然是能解决就不想重新装啊,是否能指点下呢
主要是刚接触solaris,很都概念都很模糊,想通过解决问题了解的更清楚些
作者: lengfeng32 发布时间: 2010-11-17
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28