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

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

[avr-gcc-list] trouble linking after upgrade to 4.3.0


From: Todd Elliott
Subject: [avr-gcc-list] trouble linking after upgrade to 4.3.0
Date: Fri, 31 Oct 2008 13:32:48 -0700
User-agent: KMail/1.9.9

Hi,

I'm hoping someone can tell me what I'm doing wrong here.    I upgraded to 
avr-gcc 4.3.0 and avr-libc 1.6.2

Code that previously compiled fine with 4.2.1 / 1.4.5 now gives the error 

/usr/lib/gcc/avr/4.3.0/../../../../avr/lib/avr51/libc.a(cmpsf2.o):../../../libm/fplib/cmpsf2.S:58:
 multiple definition of `__ltsf2'
/usr/lib/gcc/avr/4.3.0/avr51/libgcc.a(_lt_sf.o):(.text+0x0): first defined here
make: *** [main.elf] Error 1

during linking.    It is related to my use of the  'atof' function call.   I 
have searched for an answer, but have not located a suggestion that 
works.   It appears that the symbol __ltsf2 is defined in libc.a as well as 
libgcc.a ?   

I have tried shifting things around in the Makefile with no luck.    -lm is the 
last library on the linker line.    Removing the atof call solves the 
problem, but I need that function.


Any ideas or work-arounds?

Thanks,
Todd




reply via email to

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