http://blog.csdn.net/andrew659/article/details/6326845
分类:
版权声明:本文为博主原创文章,未经博主允许不得转载。
明明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))
搞定