undefined reference to `pow'

環境是Ubuntu 12.04 我已經#include <math.h>, 編譯時也加上了 -lm,但仍是出現題目中的錯誤: CWTNM.c:(.text+0x2ed0): undefined reference to `pow' CWTNM.c:(.text+0x2ef5): undefined reference to `pow' collect2: ld returned 1 exit st
相關文章
相關標籤/搜索