Today I upgraded to Arduino 18 and none of projects were compiling when I was using a sanguino board. I kept getting this error:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/ avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr5/crtm644p.o: (.init9+0x0): undefined reference to `main'
The sanguino folder does not include the main.cpp file. Instead it includes an identical file called main.cxx. The easiest way to fix this problem is to copy the file and rename the new copy to main.cpp.
I added a space after the
.../tools/in the path above so that the code would look better on the page.