LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 677|回复: 3

这个错误是什么原因?

[复制链接]
发表于 2004-7-6 21:37:39 | 显示全部楼层 |阅读模式
/tools/bin/ld: unrecognized option '--as-needed'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
发表于 2004-7-7 11:31:37 | 显示全部楼层
看看你的./configure,应该是说你的--as-needed这个参数无效
还有就是你的gcc优化的参数
检查一下你的./configure 后面的参数有没有错误啊
 楼主| 发表于 2004-7-7 11:36:41 | 显示全部楼层
但是我根本没加--as-needed这个参数。
发表于 2004-7-7 11:41:25 | 显示全部楼层
哦,我也不知道了,不要意思
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表