[ale] Incomplete math libraries?
Mike Fletcher
fletch at phydeaux.org
Tue Aug 31 18:22:11 EDT 1999
>>>>> "Justin" == Justin Russell <jwrussell at fs1.mar.lmco.com> writes:
Justin> Does anyone know why this is? sqrt() exists in the man
Justin> pages and it even says there that sqrt() is supposed to
Justin> be defined in math.h. Any input helpful.
The header file just defines the function signature, not the
actual implementation of the function (usually; C++ inline's not
withstanding :). Add -lm to link with the math library and all should
be well.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
678 443-6239(w) | scary questions." -- Jules =(___)=
| U
More information about the Ale
mailing list