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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|