您的位置:首页 > 其它

【解决】/usr/bin/ld: cannot find -lc

2015-04-01 11:01 435 查看
现象:运行gcc静态编译程序时报错:

/usr/bin/ld: cannot find -lc

collect2: ld returned 1 exit status
make: *** [gcc_dry2] Error 1
(或者调用Makefile编译时报错)

原因:程序链接须要静态库,系统没有安装静态库导致报错

解决:安装静态库

#sudo yum install glibc-static
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: