undefined reference to `exp'

明明include math.h了,並且也用了一個小例子試驗了下exp函數是能夠用的.函數 可是一個大的程序就老是編譯不過  undefined reference to `exp'google 後來google了下, gcc -o main main.c -lm   ((-lm tells the linker to link with /usr/lib/libm.so))it 搞定編譯
相關文章
相關標籤/搜索