Error with VarSpeedServo

Hello , I am a beginner and I already saw a huge quantity of youtube video's for arduino.
I did quit a lot of small things and it seems to work very nice.

So I started to work with servo's and I managed to do some programming also.
However I used a program "ready to use" from the examples but it is not working at all.

I get the message :

VarSpeedServo.CPP:56:10: fatal error: WProgram.h: No Such file or directory

Altough the directory VarSpeedServo is in my library...
What am I doing wrong ?

I downloaded the VarSpeedservo , unzipped it and have put it in the library.

The program is in the examples."VarSpeedServoTest§"
Who can help me in this ?
Regards ,
Luc

#include <Servo.h>

#include <VarSpeedServo.h>

// create servo object to control a servo
VarSpeedServo myservo1;
VarSpeedServo myservo2;

void setup() {

// initialize serial:
//Serial.begin(9600);

myservo1.attach(9);
myservo2.attach(8);
}

void loop() {

int LEF = 0;
int RIG = 180;

int SPEED1 = 160;
int SPEED2 = 100;

for(int i = 0; i < 4; i++) {

myservo1.write(LEF, SPEED1);
myservo2.write(LEF, SPEED2);
myservo1.wait();
myservo2.wait();

myservo1.write(RIG, SPEED1);
myservo1.wait();

myservo1.write(LEF, SPEED1);
myservo2.write(RIG, SPEED2);
myservo1.wait();
myservo2.wait();

myservo1.write(RIG, SPEED1);
myservo1.wait();

}

///*
delay(3000);
myservo1.detach();
myservo2.detach();
// */
}

You have to go into the .h and .cpp files and change "WProgram.h" to Arduino.h

Which version of the IDE do you have?
Where did you get the library?

WProgram.h is obsolete.

Where did you get your VarSpeedServo from because it seems to be a very old version. WProgram.h was changed to Arduino.h years ago.

Try downloading a up-to-date version from GitHub - netlabtoolkit/VarSpeedServo: Arduino library for servos that extends the standard servo.h library with the ability to set speed, and wait for position to complete

Steve