06-03-2002
19,
0
Join Date: Mar 2002
Last Activity: 7 May 2005, 4:45 AM EDT
Location: Sweden
Posts: 19
Thanks Given: 0
Thanked 0 Times in 0 Posts
sqrt
Hi!
when i'm trying to compile this lite example
on my linux machine I'll get errors and i don't know why..
#include <stdio.h>
#include <math.h> /* needed by sqrt() */
int main()
{
printf("%f", sqrt(10.0));
return (0);
}
this is the error:
/tmp/cc33hNVHK.o: In function `main`:
/tmp/cc3hNVHK.o(.text+0x14): undefined reference to `sqrt`
collect2: ld returned 1 exit status