我在qnx6.3用pow 函数,例程为帮助的如下:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main( void )
{
printf( “%f\n”, pow( 1.5, 2.5 ) );
return EXIT_SUCCESS;
}
但是用gcc编意提示:
gcc try_pow.c
/tmp/cckcSHfP.o: In function main': /tmp/cckcSHfP.o(.text+0x22): undefined reference to
pow’
collect2: ld returned 1 exit status
不知道是为何???