RE: [avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_AVR_13_PCREL" error

2007-04-06 Thread Eric Weddington
> -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > org] On Behalf Of Dmitry K. > Sent: Friday, April 06, 2007 1:15 AM > To: avr-gcc-list@nongnu.org > Subject: Re: [avr-gcc-list] dtostrf and the dreaded > "relocation truncat

RE: [avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_AVR_13_PCREL" error

2007-04-06 Thread Eric Weddington
> -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > org] On Behalf Of rtwas > Sent: Friday, April 06, 2007 12:10 AM > To: avr-gcc-list@nongnu.org > Subject: [avr-gcc-list] dtostrf and the dreaded "relocation > truncat

Re: [avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_AVR_13_PCREL" error

2007-04-06 Thread Dmitry K.
On Friday 06 April 2007 17:10, rtwas wrote: > gcc: avr-gcc (GCC) 4.1.1 >libc: avr-libc-1.4.4 [...] > /usr/local/atmel/bin/avr-gcc -g -Os -Wall -mcall-prologues > -mmcu=atmega128 -save-temps main.o spim.o spim_tmr0.o diag.o uart.o > cmd.o cmd_spi.o -o avr_sdiag0.obj > /usr/

Re: [avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_AVR_13_PCREL" error

2007-04-05 Thread Joerg Wunsch
rtwas <[EMAIL PROTECTED]> wrote: > /usr/local/atmel/bin/avr-gcc -g -Os -Wall -mcall-prologues > -mmcu=atmega128 -save-temps main.o spim.o spim_tmr0.o diag.o uart.o > cmd.o cmd_spi.o -o avr_sdiag0.obj Add -lm to this. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http:/

[avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_AVR_13_PCREL" error

2007-04-05 Thread rtwas
gcc: avr-gcc (GCC) 4.1.1 libc: avr-libc-1.4.4 atmega128: Hello, On a current project, as soon as I add dtostrf(f0, 4, 4, str2); or dtostre((float) f0, str2, 4,0); to one of my source files I get: /usr/local/atmel/bin/avr-gcc -g -Os -Wall -mcall-prologues -mmcu=atmega1