undefined reference to `exp'

    xiaoxiao2021-03-26  36

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

    undefined reference to `exp'

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

    明明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))

    搞定

    转载请注明原文地址: https://ju.6miu.com/read-661518.html

    最新回复(0)