User forums > Embedded development

a problem compiling eeprom of avr(atmega16,winavr) program

<< < (4/7) > >>

scarphin:
It's not CB that links to the wrong library, it's gcc that links to the 'libc.a' in the root folder (lib/) that doesn't have the corresponding functions. The correct one being in the 'lib/avr5/' folder has the corresponding functions and gcc links to it if it can't access to the one in the root (lib/). Or if u change the 'lib/libc.a' with the correct one 'lib/avr5/libc.a' everything goes fine with the linkage. It's quite clear that gcc looks for the 'libc.a' first in the root folder and finds first the wrong 'libc.a' version and stops linking. I'm guessing u have a setting somewhere that bypasses the root folder 'lib/' somehow. I don't think it's related to CB but I think it's a missing setting in CB.

zage2009:
I really hope that the link problems of avr-gcc and other aspect's problems aren't too many.

Jenna:
Is it possible, that avr-gcc and mingw is mixed, both using the same root-folder ?
Just a wild guess.

scarphin:
Worth a try, I'll check it out but don't think so.

scarphin:
Aelxx: I checked ur settings file and couldn't find any specific setting regarding the issue. It also didn't build and gave the same linker error. Thnx for the help though.

Jens: I checked for an interference between my mingw and avr-gcc installations and found nothing. Thnx for the idea.

I ran out of ideas, I think I'll try 'avrfreaks' when I have time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version