[解决] [centOS] g++ 带 -static 参数编译时,报错 /usr/bin/ld: cannot find -lm

静态编译时缺少某个库

yum install glibc-static

从这里找到的

 http://www.linuxquestions.org/questions/linux-software-2/usr-bin-ld-cannot-find-lm-821597/

posted on 2015-12-17 14:58  RuriGokou  阅读(752)  评论(0编辑  收藏  举报

导航