ts-7000
[Top] [All Lists]

[ts-7000] eabi cross compile missing sin/cos?

To:
Subject: [ts-7000] eabi cross compile missing sin/cos?
From: Scott Zimmerman <>
Date: Mon, 17 Aug 2009 12:12:13 -0700


Me again,

I was just trying to build the circle program from the embeddedarm site and noticed it doesn't link.  I am including libm which I believe should have sin and cos defined in it, but I get the following:

/usr/local/arm-ep9312-linux-gnueabi/bin/arm-ep9312-linux-gnueabi-gcc -mcpu=ep9312 -static -I/usr/local/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/usr/include -L/usr/local/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/lib -lm -o circle circle.c
/tmp/cckVrzHD.o: In function `main':
circle.c:(.text+0x550): undefined reference to `sin'
circle.c:(.text+0x5b4): undefined reference to `cos'
circle.c:(.text+0x63c): undefined reference to `sin'
circle.c:(.text+0x6a0): undefined reference to `cos'
collect2: ld returned 1 exit status
make: *** [circle] Error 1

Are these functions defined somewhere else, or is my cross compiler not working as well as I thought it was?

Thanks again,

...Zz



__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU