[H-GEN] 'pow' wont work for me
Luke Grant
humbug at term.webexpress.net.au
Mon Jul 6 01:19:30 EDT 1998
ok everybody,
Please tell me that i am doing something realy stupid making a simple
mistake.....
basicaly i am trying to use the function 'pow' from the <math.h> lib and
it just wont work.
i get the error.....
In function 'main';
/home/clientcgi/testpow.c : : undefined reference to 'pow'
make: *** [encode] Error1
the file looks like this....
#include <stdio.h>
#include <math.h>
void main(){
double num1,num2,num3;
num1 = 355436.0;
num2 = 24453.0;
num3 = pow(num1, num2);
printf("%lf\n",num3);
}
can anyone think of any reason why this is not working?????
Luke
*****************************************************
Luke Grant
Luke.G at uq.net.au
n2143968 at student.fit.qut.edu.au
techman at webexpress.net.au
*****************************************************
More information about the General
mailing list