ts-7000
[Top] [All Lists]

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

To: Scott Zimmerman <>,
Subject: [ts-7000] Re: eabi cross compile missing sin/cos?
From: Zz Zimmerman <>
Date: Mon, 17 Aug 2009 12:39:04 -0700
Nevermind. Removing the -static flag makes it work.  Finally!  Answering
my own questions!

On Mon, Aug 17, 2009 12:12 pm, Scott Zimmerman wrote:
> 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

------------------------------------

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/

<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