您的位置:首页 > 其它

ubuntu 下 数学库编译链接时找不到各种数学问题解决方法 can not fon atan 等等

2015-03-27 09:26 621 查看
解决参考 http://askubuntu.com/questions/190246/ld-cannot-find-math-library
you should use
-lm
at the end.because unresolved symbols are found after gcc encounters
montecarlo_time.o
and there is no library or anything else in which it can find it can resolve that symbol.

把 -lm 链接发到 -o 前面 ,放到链接其他库的最后面
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐