Günter Dannoritzer wrote:
Eric Weddington wrote:


You need to use the -mmcu= option for the link stage too, and specify your microcontroller type.


I actually used that Makefile with WinAVR before and it always worked. I tried it with the broken installation and it did not make any difference.

Hmpf.


Now I am always a bit confused with the linker options. Do I need to add that to the -Wl switch or just pass it to avr-gcc?

So is this the right way:

  avr-gcc -mmcu=at90s8515 -Wl...

Yes, this is the correct way. And you can see this in the WinAVR Makefile Template too.


--
Eric Weddington


_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to