I was writing a simple program in linux, which includes sqrt function of c.
I included the math.h. But when I use gcc to compile it, it gave an error message:
/home/murat/tmp/ccOv9upo.o(.text+0x4b): In function `main':
: undefined reference to `sqrt'
collect2: ld returned 1 exit status
I checked the /usr/include, it does have the file math.h.
then I tried sqrtf, this aint woking either.
I am using Mandrake 10, the kernel is 2.6.3-7mdk.
Does anybody know what is WRONG???
How should I change it?
thanks