I've ran into a similar problem before with math routines.
The error you're getting is a linker error. The linker cannot find
these routines that are being called.
The math library is seperate from the standard library.
Add the libm.a library to the files you want to link together.
Date: Wednesday, July
24, 2002 11:43:16 PM
strange behaviour with ceil()
The code below gives errors of
reference to 'sin' and
undefined reference to 'ceil'
remove the line:
"m = ceil(a);"
the errors go away but I need to
use ceil in my code.
I spent an hour trying to find why this is an
error with no luck!
Please help! :)
Here is the code that has
an error in it somewhere..:
a = sin(30);
avr-gcc-list at http://avr1.org