Encountered lousy boo-boo in arduino IDE generated compilation commands

You could try using the mpide GUI to build the AVR sketches rather than the Arduino IDE.

I might give this a try, I would like to test some features of c++11 on the Arduino ( variadic templates, would revolutionize my library ).

On a side note, anyone read Italian and see the thread about upgrading the AVR system the IDE uses.
http://arduino.cc/forum/index.php/topic,96976.0.html

I might plug through it one day with Google translator.