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

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

Re: [avr-gcc-list] [AVR gcc link error] relocation truncated to fit: R_A


From: Emmanuel Bourien
Subject: Re: [avr-gcc-list] [AVR gcc link error] relocation truncated to fit: R_AVR_13_PCREL ...[resolved]
Date: Wed, 16 Apr 2008 13:43:33 +0200
User-agent: Thunderbird 1.5.0.14 (Windows/20071210)

That's it!
My error was that I added -lm to the linker options.... but not at the end!
So that's okay now
Thanks a lot Wouter.

Wouter van Gulik a écrit :
Emmanuel Bourien schreef:
Hello,
I get and install the last version of WinAVR (April 08 -GCC 4.3.0).
I get this "relocation truncated to fit: R_AVR_13_PCREL" error during the link operation.
I'm working with AVR Studio 4.12

I've read i should add -lm to the linker command to avoid this...but no success :(
So i need your help to avoid this problem!

Excuse my english ;)
thanks for your help. Best regards
emmanuel


Your are almost there....
You need to add -lm at the end of the linker step. See http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_libm

HTH,

Wouter




--
Emmanuel Bourien
Imartec
52 Rue Diamant - Porte 5
40600 Biscarrosse
FRANCE
Tel/Fax: +33 (0)5-58-82-07-65

visit our new web site: www.imartec.com





reply via email to

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