19 Feb
2004
19 Feb
'04
06:21
You need to link the math library when you compile. So if your file is called
uaioe.c (and with "#include
I'm new to C in linux. Btw, I'm having a problem with function such as pow(x), sqrt(x), etc. For example, i wrote a program like this :
#include
#include main() { float a, b;
b = pow(a, 3); printf("Result is : %f\n", b); } when i try to compile it using gcc, it keeps telling me an error like this ------> undefined 'pow' in main ....bla bla bla anyone can help?