Help with sqrt() and #include <math.h> and what -l???
Ron Hudson
ron.hudson@sbcglobal.net
Mon Feb 28 07:49:00 GMT 2005
-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.
>
>
More information about the Gcc-help
mailing list