在Linux Mint中编译C程序时出错
发布时间:2021-01-01 17:39:33 所属栏目:Linux 来源:网络整理
导读:我在编译一个简单的C程序时遇到错误. #includestdio.hvoid main(){ int i=5;printf("I value is %d",i);} 错误是…… /usr/local/bin/ld: this linker was not configured to use sysrootscollect2: error: ld returned 1 exit status 我的gcc版本是.. gcc (
我在编译一个简单的C程序时遇到错误. #include<stdio.h> void main() { int i=5; printf("I value is %d",i); } 错误是…… /usr/local/bin/ld: this linker was not configured to use sysroots collect2: error: ld returned 1 exit status 我的gcc版本是.. gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 Copyright (C) 2012 Free Software Foundation,Inc. 谁能知道我的问题是什么? 解决方法如果您运行的是binutils的后级,有时会发生这种情况.作为第一步,您需要检查gcc版本的依赖关系并确保它们全部安装完毕.(编辑:ASP站长) 【免责声明】本站内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。 |
相关内容
未处理完善
-
无相关信息
最新更新