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/
|