I have a confusing problem using Atmel with the Arduino - It DID work properly for several projects and then BAM! The simplest "blink.ino" fails to compile with the msg: undefined reference to 'main'. I have a few sketches that work well using Arduino ERW but get the same error: undefined reference to 'main' when I use Atmel Studio.
i use Atmel Studio b/c i have issues with 2 MEGAS which will not work on the USB port for programming so the ISP programmer works for these two units.
I've gone through un-installing and reinstalling - i did some reading but cannot find the FIX (or missed it somewhere).
My programming skills are out of date and a bit rusty - I did coding back in the 80's ... it's been a challenge doing some 'catch-up'
I'm working on understanding C++ so some help sorting out this would be greatly appreciated.