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

sqrt is in the math library. Add -lm to your cc command and ld will find it.