Reputation: 1561
I'm attempting to compile Arduino code in the Eclipse IDE using WinAVR and the AVR IDE plugin, and I'm running into one major stumbling block - when I try to compile the code I get the following error:
/usr/bin/sh: g++: command not found
make: *** [main.o] Error 127
Yeah, I bet not...I'm using Windows Vista. I have the paths to WinAVR's avr-g++ all set correctly in the preferences tab, does anyone know why it might be doing this?
Upvotes: 2
Views: 4281
Reputation: 11
The easiest way now to use arduino in eclipse is by using the arduino eclipse plugin. It is build on the same software stack CDT +win AVR but it sets all the options correctly for you. It even comes with a library import functionality. Look at eclipse.baeyens.it for installation instructions an FAQ.
Upvotes: 1
Reputation: 8447
Did you set your paths like this?
avr preference panel http://img534.imageshack.us/img534/5996/avreclipsepath.png
I followed the instructions on http://www.arduino.cc/playground/Code/Eclipse and everything worked fine on my Vista box with Eclipse 3.5.
Upvotes: 3