请教。。。。。测试没有没有事,怎么编译有错误?
#include <stdio.h>#include <math.h>
int main ()
{
float d = 300000, p = 6000, r = 0.01, m;
m = lg10(p/(p-d*r))/lg10(1+r);
printf ("m = %6.2f\n", m);
return 0;
}
****************************************************************************--------------------Configuration: shi - Win32 Debug--------------------
Linking...
shi.obj : error LNK2001: unresolved external symbol _lg10
Debug/shi.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.