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

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

 



-lm works, Thank you.

Now how can I answer that sort of question for myself in future... I looked at the man page for
sqrt and gcc, but they didn't tell me anything.




On Feb 25, 2005, at 6:23 PM, Jonathan Wilson wrote:

Depends on the platform.
But, try -lm (to read libm.a) since that seems to be the "standard" on things like linux and other unix platforms.





[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