This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Help with sqrt() and #include <math.h> and what -l???
- From: Ron Hudson <ron dot hudson at sbcglobal dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 25 Feb 2005 18:16:12 -0800
- Subject: Help with sqrt() and #include <math.h> and what -l???
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.