安装多个版本gcc又卸载一个后,gcc -g选项编译出错:/tmp/cctQ99Ig.s: Assembler messages, ld returned 2 exit status
来源:互联网 发布:电脑屏幕声音录制软件 编辑:程序博客网 时间:2024/06/11 05:32
TP-X200:~$ gcc -g -o abc abc.c
/tmp/cctQ99Ig.s: Assembler messages:
/tmp/cctQ99Ig.s:155: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:164: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:185: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:194: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:443: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:451: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:454: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:457: Error: junk at end of line, first unrecognized character is `i'
工具键冲突,解决方法:把/usr/local/bin里相关的工具删除或改名,如:
sudo mv /usr/local/bin/as /usr/local/bin/as.bak
sudo mv /usr/local/bin/ld /usr/local/bin/ld.bak
/tmp/cctQ99Ig.s: Assembler messages:
/tmp/cctQ99Ig.s:155: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:164: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:185: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:194: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:443: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:451: Error: junk at end of line, first unrecognized character is `d'
/tmp/cctQ99Ig.s:454: Error: junk at end of line, first unrecognized character is `i'
/tmp/cctQ99Ig.s:457: Error: junk at end of line, first unrecognized character is `i'
工具键冲突,解决方法:把/usr/local/bin里相关的工具删除或改名,如:
sudo mv /usr/local/bin/as /usr/local/bin/as.bak
sudo mv /usr/local/bin/ld /usr/local/bin/ld.bak
0 0
- 安装多个版本gcc又卸载一个后,gcc -g选项编译出错:/tmp/cctQ99Ig.s: Assembler messages, ld returned 2 exit status
- Linux gcc编译error:"collect2: ld returned 1 exit status"
- Linux gcc编译提示:undefined reference to `sqrtf' collect2: error: ld returned 1 exit status
- 使用gcc编译时错误提示: ld returned 1 exit status问题
- IOS编译错误:ld: symbol(s) not found collect2: ld returned 1 exit status
- GCC 中 undefined reference to ‘ceil’ collect2:ld returned 1 exit status 错误
- GCC 中 undefined reference to ‘ceil’ collect2:ld returned 1 exit status 错误
- 自定义库引用时编译出错“collect2: error: ld returned 1 exit status”
- gcc g++编译选项
- gcc g++编译选项
- g++/gcc编译选项
- gcc/g++ 编译选项
- QT4静态编译后,编译程序总是通不过,提示“ error: collect2: ld returned 1 exit status”
- QT编译错误:collect2: ld returned 1 exit status
- Android 编译错误:collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- 【linux c 编译】collect2: ld returned 1 exit status
- ListView使用技巧
- Android 事件分发机制 理解杂谈
- Androidx学习笔记(4)-- 事件处理的四种写法(点击事件为例)
- C#多线程(Thread)开发基础
- 编程珠玑(第二版) 第二章 问题A
- 安装多个版本gcc又卸载一个后,gcc -g选项编译出错:/tmp/cctQ99Ig.s: Assembler messages, ld returned 2 exit status
- 导航条固定及浮动的实现
- javaEE之------Spring-----》 AspectJ注解
- 人脸检测
- MySQL5.7版本密码设置
- ORACLE SQL语句总结
- C++头文件一览
- Elasticsearch 子查询
- 对象序列化