Help with sqrt() and #include <math.h> and what -l???

Ron Hudson ron.hudson@sbcglobal.net
Sat Feb 26 14:22:00 GMT 2005


I want to use sqrt() in my C program, everything compiles but the linker
can't find sqrt()

/tmp/ccUBZv3v.o(.text+0xe36): undefined reference to 'sqrt'

I believe i need a -l<some library> in my makefile but I don't know
how to find out what <some library> is...

ron.



More information about the Gcc-help mailing list