weird C problem
yehielb at mail.ru
Wed Aug 11 16:31:48 UTC 2010
I have written a small program in C and I am using the math.h library using
so far everything is good.
when using the function sqrt I get the next error:
$ cc a.c
/tmp/ccTaon4H.o: In function `main':
a.c:(.text+0x3e): undefined reference to `sqrt'
to be sure I checked man sqrt:
double sqrt(double x);
I have no idea what is wrong, any suggestions are welcome.
More information about the users