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.
Code:
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
Code:
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