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]

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


-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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]