Why functions "cos, sin, ..." doesn't work!
Aaron J. Grier
aaron at frye.com
Thu Jul 11 23:13:30 UTC 2002
On Thu, Jul 11, 2002 at 06:57:49AM -0700, Dmitrii Shirokovskij wrote:
> Hi
> I'm trying to use functions "cos, sin", but it doesn't
> work. Compilation says: undefined reference to 'cos'.
>
> {bsp = pc686
> target = i386-rtems
> W2K + Cygwin}
>
> Help me.
you are forgetting to link in the math library with your application.
usually this is done by adding
LIBS+=-lm
to your Makefile.
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron at frye.com
More information about the users
mailing list