avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Another 2.97 question (linking with floating point)


From: Larry Barello
Subject: [avr-gcc-list] Another 2.97 question (linking with floating point)
Date: Sat Jan 20 05:49:21 2001

Why does Gunnar's distribution link with "libgcc" instead of "libm" in my
application?  My code is not finding fplib that should be in libm.a  I am
not sure where to start looking. Here are excerpts from my map file: (maybe
I need to change some link order somewhere...) Maybe the libm wasn't built
correctly...  Thanks, in advance, for your help.

######-- results (makefile output)---
avr-gcc NewBot.o MotorTask.o LcdTask.o maze.o mazesup.o lcdio.o lcd.o
Encoder.o adc_driver.o GP2D02.o
C:/mydocu~1/robotics/gccavr~1.5/avrx/avrx.a -Wl,--defsym,AvrXStack=0x25F,-Ma
p=NewBot.map,--cref,-v,--sort-common -mmcu=at90s8535 -o NewBot.elf
GNU ld version 2.10.91 (with BFD 010109)
/cygdrive/c/AVRGCC/BIN/../lib/gcc-lib/avr/2.97/../../../../avr/bin/ld.exe:
region text is full (NewBot.elf section .text)
MotorTask.o: In function `MotorTask':
/cygdrive/c/My Documents/Robotics/NewBot/MotorTask.c:139: undefined
reference to `cos'
/cygdrive/c/My Documents/Robotics/NewBot/MotorTask.c:140: undefined
reference to `sin'
/cygdrive/c/My Documents/Robotics/NewBot/MotorTask.c:145: undefined
reference to `fmod'

######-- map output (2.97..) --
C:/mydocu~1/robotics/gccavr~1.5/avrx/avrx.a(avrx_message.o)
   C:/mydocu~1/robotics/gccavr~1.5/avrx/avrx.a(avrx_timequeue.o)
(AvrXIntSendMessage)
/cygdrive/c/AVRGCC/BIN/../lib/gcc-lib/avr/2.97/libgcc.a(_mulhi3.o)
   MotorTask.o (__mulhi3)

######-- Old map output (2.95 ...) --
LOAD GP2D02.o
LOAD C:/mydocu~1/robotics/gccavr~1.5/avrx/avrx.a
                0x0000025f                AvrXStack=0x25f
LOAD C:\AVRGCC\BIN\..\lib\gcc-lib\avr\2.95.2\libgcc.a
LOAD C:\AVRGCC\BIN\..\lib\gcc-lib\avr\2.95.2\..\..\..\..\avr\lib\libc.a
LOAD C:\AVRGCC\BIN\..\lib\gcc-lib\avr\2.95.2\..\..\..\..\avr\lib\libm.a
LOAD C:\AVRGCC\BIN\..\lib\gcc-lib\avr\2.95.2\libgcc.a

Thanks for all your patience with my questions.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]