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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux