News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Codeblocks generates empty "-mmcu=" in makefile

Started by drnicolas, February 20, 2011, 02:22:15 PM

Previous topic - Next topic

drnicolas

 :shock:
I am new to Codeblocks and this is my first try to convert an existing project with 7 source files to codeblocks

The first run with WinAVR gives me the following lines:
avr-gcc.exe -Wall -mmcu= -DF_CPU=16000000UL  -mmcu=at90can128 -Wall -g     -c ..\..\CAN-Adapter\CANUSB-Adapter\Firmware\CAN2USB_Konverter.c -o obj\Debug\CAN-Adapter\CANUSB-Adapter\Firmware\CAN2USB_Konverter.o
cc1.exe: error: missing argument to "-mmcu="

AT first, I thought I have forgotten to hook one of the target -µC, but after hooking the AT90CAN128, I always get this empty -mmcu .... - and I can't find the reason.
Computer Windows7 in a domain-environment
Codeblocks 10.05

oBFusCATed

Check you options in Project -> Build options and in Settings -> Compiler & Debugger -> Compiler -> [your compiler]
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

scarphin

I can't find anything called cc1.exe in the latest winavr distribution, what is it used for? Are u sure u have the correct settings for compiler and compiler paths?

oBFusCATed

Most of the time gcc calls it and it is part of gcc's distribution.
On my windows install it is in "c:\MinGW\libexec\gcc\mingw32\4.4.0\"
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]