-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.