I tried the following code snippet to test the trig functions
#include <math.h>
#include <stdio.h>
main()
{
printf("sin of 45 deg %f\n",sin(0.7853979));
printf("cosine of 45 deg %f\n",cos(0.7853979));
printf("Tangent of 45 deg %f\n",tan(0.7853979));
}
I tried to compiled it for the TS-7260 using crosstools and this is
is the messages I get.
linux-h4hb:~/Desktop/Code # /usr/local/opt/crosstool/arm-linux/gcc-
3.3.4-glibc-2.3.2/bin/arm-linux-gcc test.c -mcpu=arm9
/tmp/cce6WkFl.o(.text+0x14): In function `main':
: undefined reference to `sin'
/tmp/cce6WkFl.o(.text+0x38): In function `main':
: undefined reference to `cos'
/tmp/cce6WkFl.o(.text+0x5c): In function `main':
: undefined reference to `tan'
collect2: ld returned 1 exit status
Any ideas why the math function are not working.
Charlie