linux undefined reference to `log'

解决方案

也就是只要在最后面添加 -lm就行了。阿西吧。

猜你喜欢

转载自blog.csdn.net/rubikchen/article/details/89524858