zl程序教程

您现在的位置是:首页 >  其它

当前栏目

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

解决 Cannot Find bin usr LD LC
2023-09-14 09:08:11 时间

现象:运行gcc静态编译程序时报错:

/usr/bin/ld: cannot find -lc

collect2: ld returned 1 exit status
make: *** [gcc_dry2] Error 1

(或者调用Makefile编译时报错)


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

解决:安装静态库

#sudo  yum install glibc-static