math.h not working? o.0

Alright, umm i cant get this to work.
im looking at some example and a book i have.
when i try to compile my program i get an error message.

ld: 0711-317 ERROR: Undefined symbol: .sqrt
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

I did #include<math.h> after my stdio.h at the top of the program. I even tried replacing sqrt with the power function; same error. (except it was .pow instead of .sqrt)

this is my function

float squareRootValue(int i){
      return (float) sqrt(i);
     }

I'm passing a number to the function that will be rooted. does anyone know whats wrong? if you need more code, please let me know. im on an AIX 4 system.
thanks!
primal

You need to search the math library. On my system, I would do something like:
cc prog.c -lm -o prog
to compile that program.

Yes you need to add "-lm"

That is to link the math library when linking your program