#include <stdio.h>#include <math.h> int main(){ double a = 10.0,b = 3.0; float c; c = pow(a,b); printf("%f\n",c);}编译结果:/tmp/ccibw7gz.o: In function `main':test.c:(.text+0x2d): undefined reference to `pow'c
解决参考 http://askubuntu.com/questions/190246/ld-cannot-find-math-library you should use -lm at the end.because unresolved symbols are found after gcc encounters montecarlo_time.o and there is no library or anything else in which it can find it can reso