标签:this linker was not c compiler cannot cr
binutils错误,使用gcc -o 连接目标文件时,报错: /usr/local/bin/ld :this linker was not configured to use sysrootscollect2:ld returned 1 exit status
也有报错为: C compiler cannot create executables
这个可能是你/usr/local/bin 目录下的有另一个版本不对应的GNU Linker ld ,
PS:查看当前设置的环境变量:export $PATH
设置环境变量:
cd ~
ls .pro* .bash*
gedit .profile
这样即可打开 .profile文件,然后可以在里面添加环境变量。
binutils使用错误:this linker was not configured to use sysrootscollect2:ld returned 1 exit status
标签:this linker was not c compiler cannot cr
原文地址:http://blog.csdn.net/u011514906/article/details/38148811