[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] trouble linking after upgrade to 4.3.0
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] trouble linking after upgrade to 4.3.0 |
Date: |
Sun, 2 Nov 2008 21:20:08 +0100 (MET) |
Todd Elliott <address@hidden> wrote:
> 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
Can you provide a complete linker command line (please add -v
to the compiler options), and even better, sample source code
to reproduce the issue?
In a quick, I cannot reproduce it using the following source
code:
#include <math.h>
#include <stdlib.h>
int
main(void)
{
double f;
f = atof("3.1415926");
return (int)f;
}
regardless of whether I specify -lm or not.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)