codewarrior linker error using cosine and sine function, Axiom PB555

"brockmid" <[email protected]> Wed, 22 Nov 2006 20:09:15 -0000
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hello,
I am using CW MPC5xx v8.1 and the Axiom PB555 Dev Board. I am using the 
sign and cosine functions. When I try to compile my project I get the 
linker error below:



Link Error   : undefined: 'cos'
Referenced from 'main' in main.o
Project: Hello_World.mcp, Target: Hello World RAM

Link failed.


This happens if I use any of the math functions (i.e. sin, cos, sqrt, 
pow, log, etc.). I have included the math.h header file in my main.c 
file. I am assuming there is some special linker setting I must use. 
Any advice would be greatly appreciated. My license is going to very 
soon so I would like to get as far on this project as possible but I am 
stuck at this point. 

BTW, I am not using a debugger rather just downloading the program into 
RAM and running it from there. Thanks for the help.

Brock