undefined reference to `exp'

来源:互联网 发布:ubuntu添加搜狗输入法 编辑:程序博客网 时间:2024/06/05 10:59

http://blog.csdn.net/andrew659/article/details/6326845


undefined reference to `exp'

标签: referencemath.hlinkerincludegooglegcc
 2775人阅读 评论(0) 收藏 举报
 分类:

明明include math.h了,而且也用了一个小例子试验了下exp函数是可以用的.

但是一个大的程序就总是编译不过  undefined reference to `exp'

后来google了下, gcc -o main main.c -lm   ((-lm tells the linker to link with /usr/lib/libm.so))

搞定

0 0