hey,
I want to use this library and program :
http://playground.arduino.cc/ComponentLib/Servo
But when i want to compilate it I have an error:
C:\Users\Jan\Documents\Arduino\libraries\SoftwareServo/SoftwareServo.h:4:22: fatal error: WProgram.h: No such file or directory
#include <WProgram.h>
Anyone know how to fix it?
That library is ANCIENT - hasn't worked since before version 1.0 if it's looking for WProgram.h.
Replace the #include with
#if ARDUINO >= 100
#include "Arduino.h"
#include "Print.h" //if your module needs this, which it probably doesn't
#else
#include "WProgram.h"
#endif
This is how most libraries handle that issue - though by now, pre-1.0 is so rare, you can just do
#include "Arduino.h"
#include "Print.h" //again, see above.
That said, you may have to fix other issues to make it work in new versions. Can't you get a newer version of that library?