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
相关文章
相关标签/搜索