Arduino 18 and Sanguino


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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: