Simon Wright expounded in news:m2sk30rcc1.fsf@pushface.org: > Warren writes: > >> sjw expounded in news:d00563f7-b2a4-4a8c-8d53-adcbe72d62d8 >> @j9g2000yqn.googlegroups.com: >> >>> On Jul 30, 2:40 pm, Warren wrote: >>> >>>> avr-gnatlink F:\cygwin\home\Warren\avr\testavr\testavr.ali >>>> -mmcu=avr5 - >>> lgcc >>>> -o F:\cygwin\home\Warren\avr\testavr\testavr >>> >>> Just -lgcc on its own? you'd expect it to call up -lgnat & possibly >>> - lgnarl. Hmm. >> >> Huh? It does the -lgnat on its own. Adding it >> didn't helped either. ;-) > > Oh, I must have misunderstood. What happens if you call avr-gnatmake > with -v -largs -Wl,-v? (to see what's going on). I did try the -v, but not after -largs. But the problem is now solved now, by fixing the project file: The key turned out to be the following 3 lines in the project file (that I had differently): package Builder renames AVR.Builder; package Compiler renames AVR.Compiler; package Binder renames AVR.Binder; Evidently, this sets things up a lot of things: $ avr make avr-gnatmake -XMCU=atmega328p -Ptestavr.gpr avr-gcc -c --RTS=rts/avr5 \ -gnatec=C:\WinAVR-20100110\lib\gnat\gnat.adc \ -gdwarf-2 -gnatwp -gnatwu -gnatn -gnatp \ -gnatVn -Os -gnatef -fverbose-asm -frename-registers \ -mmcu=atmega328p -gnateDMCU=atmega328p \ -fdata-sections -ffunction-sections -I- \ -gnatA F:\home\wgay\avr\testavr\testavr.adb The "avr" is just my wrapper script to fix the PATH in cygwin for the WinAVR tools. Warren