This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]