AVR-GCC Bug about atol()

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View

I find a bug in avr-gcc library. When the following code is compiled,
the avr-objcopy.exe has problem and exit. The compilation information
has the following information:

Converting to AVR Extended COFF: main.cof
avr-objcopy --debugging --change-section-address .data-0x800000
--change-section-address .bss-0x800000 --change-section-address
.noinit-0x800000 --change-section-address .eeprom-0x810000  -O
coff-ext-avr main.elf main.cof
make.exe: *** [extcoff] Error -1073741819

And there is no problem when I changed atol() to atoi().



Re: AVR-GCC Bug about atol()
I used WINAVR version 20040720

Re: AVR-GCC Bug about atol()
Quoted text here. Click to load it
... snip ...
Quoted text here. Click to load it

That is not exactly a compilable program, and you don't show
getProductInfo.  However, atol returns a long, while atoi returns
an int.  One of these must be the wrong type to supply to
GetProductInfo.  Turn up the compiler warning level.

"If you want to post a followup via groups.google.com, don't use
 the broken "Reply" link at the bottom of the article.  Click on
We've slightly trimmed the long signature. Click to see the full one.

Site Timeline