What happened to trig functions in math.h?
Shawn T. Rutledge
plug-discuss@lists.PLUG.phoenix.az.us
Thu, 12 Jul 2001 11:42:23 -0700
It wasn't a link error, it was a compile error (cos function not defined).
And I grepped in /usr/include. But I see it's in that bits/ subdirectory.
Now I'll have to see why including <math.h> as it already did, was not
enough.
On Wed, Jul 11, 2001 at 10:41:03PM -0700, Bob wrote:
> I believe cos is defined in mathcalss.h which is included by math.h.
>
> If you are having difficulty linking, make sure you use -lm on your gcc
> command line to link to the math library.
--
_______ Shawn T. Rutledge / KB7PWD ecloud@bigfoot.com
(_ | |_) http://www.bigfoot.com/~ecloud kb7pwd@kb7pwd.ampr.org
__) | | \________________________________________________________________