发新话题
打印

【求助】collect2: cannot find `ld'是什么问题?

【求助】collect2: cannot find `ld'是什么问题?

按照手册上说的用交叉编译
/LinuxPPC/CDK/bin/powerpc-linux-gcc -o hello hello.c
之后
提示
collect2: cannot find `ld'

编译没通过?

hello.c代码如下:
include
int main(int argc,char **argv)
{
printf("hello\n");
}


在linux gcc下可以编译成功,生成可执行文件
可是使用交叉编译就是上面的提示
这是怎么回事???      

TOP

你可能没安装binutils或者不在path里      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

链接有问题,兄台。检查一下你的path设置对不对。      

TOP

发新话题