Programming Arduino Yún needs the Arduino IDE 1.5.4 which has Beta status this time.
In November 2011 the Arduino team introduced Arduino IDE Version 1.0 introducing some changes.
Porting older Arduino sketches into the world of IDE V 1.0 and higher must take into account these changes.
Used file extension .pde was replaced by .ino to better distinguish between Arduino and Processing files. Old .pde will be opened by IDEs 1.0 and higher but saved as .ino. The reverse does not work.
Many Arduino libraries were written for IDE Versions before 1.0. These libraries use other libraries included on demand. Beginning with IDE V 1.0 the libraries wiring.h, WProgram.h, WConstants.h, and pins_arduino.h were combined in Arduino.h.
It is a good praxis to include the following code lines into the used libraries:
#if ARDUINO >= 100 #include “Arduino.h“ #else #include “WProgram.h” #endif
2013-10-07