I got that error message a few days ago, and I've tested it with a few different programs with the same results. The full message is
"avr-g++: error: missing filename after '-o'
exit status 1
Error compiling."
I've looked all over the internet and nobody has reported this (that I've seen), and it's starting to get frustrating since I can't even compile code, much less upload it . I'd appreciate any help if you know what the problem is.
-Grant
EDIT: Well I just uninstalled and reinstalled the Arduino IDE (probably the first thing I should have done). Now I don't get the error message anymore, but if anyone knows why the problem happened, I'd love to know.
I think that's from a version of the AVR board files that is incompatible with the version of the IDE? There was some weird compatibility stuff in recent versions.
DrAzzy is quite right. This is a common problem. @pert usually addresses it like so:-
pert:
The error is caused by using Arduino AVR Boards 1.6.10 with Arduino IDE 1.6.6, they are incompatible. The solution is to either:
Upgrade to Arduino IDE 1.6.7 or 1.6.8
Install Arduino AVR Boards 1.6.9 using Boards Manager(Tools > Board > Boards Manager... > Arduino AVR Boards(click on it) > Select version > 1.6.9 > Install) - I've had problems reinstalling the previous Arduino AVR Boards version with Boards Manager so you may have to reinstall the Arduino IDE if you can't compile after going back to Arduino AVR Boards 1.6.9.