2015年12月17日

[编译] g++ 与 Makefile

摘要: g++ -c CppSoureFile -o ObjectCodeFile-c 编译而不链接-lm 链接数学库-static 生成静态链接的程序 阅读全文

posted @ 2015-12-17 16:15 RuriGokou 阅读(180) 评论(0) 推荐(0) 编辑

[解决] [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 @ 2015-12-17 14:58 RuriGokou 阅读(756) 评论(0) 推荐(1) 编辑

导航