gcc -static 编译不过解决

 

 

gcc -s -static -Wall -O3    pointer.c   -o pointer
/usr/bin/ld: cannot find -lc

解决办法,安装glibc静态库:

 

sudo yum install glibc-static

 

 

 

posted @ 2014-02-08 10:04  wyjail  阅读(117)  评论(0)    收藏  举报