User forums > Embedded development
avr-gcc: error: specified option ‘-mmcu’ more than once
(1/1)
markp:
The first AVR project I tried gave the following error -
--- Code: ----------------- Build: Release in avrblink03 (compiler: GNU GCC Compiler for AVR)---------------
avr-gcc -Wall -mmcu=atmega328p -DF_CPU=8000000UL -mmcu=atmega329p -I/usr/lib/avr/include -c fuse.c -o obj/Release/fuse.o
avr-gcc: error: specified option ‘-mmcu’ more than once
--- End code ---
I looked around the CB files and found that mmcu is specified in the .cbp file - in xml format - and also in Project->Build Options Compiler Settings->Other compiler Options.
Deleting the line from Other Compiler Options fixes the the problem but has to be done each project. Is there a global way to stop mmcu being specified twice ?
oBFusCATed:
Yes, remove it from the global compiler options or edit the avr project template your using to create your projects...
Navigation
[0] Message Index
Go to full version