g++编译报错:/usr/bin/ld: cannot find -lstdc++,lc,lm
梦断酒醒 2011-03-18 03:51:51 使用如下命令:
g++ -I/usr/local/include -o aaa -lboost_system *.cpp -static
返回错误:
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
怎么解决这个问题?我希望是可以静态连接。