Error compiling Servo.h

Hi,

Sorry for creating a new topic, but this seems to be a common issue that has no dedicated topic.

I just hooked up a standard servo to my Arduino Robot, and I am trying to use the Servo.h library to control it, but I am getting the "Vector_17" error upon compiling.

I read bensenior's and PaulS' posts here. However, I am having trouble making the ServoTimer2 library work.

Could someone post a more "step-by-step"-like explanation about how I can do this, as I am very new to Arduino? Any insight on how I could control the servo is welcome!

This is the list of errors I get when using Servo.h:

Arduino: 1.6.5 (Windows 7), Board: "Arduino Robot Control"

Servo\avr\Servo.cpp.o: In function `__vector_17':
C:\Program Files (x86)\Arduino\libraries\Servo\src\avr/Servo.cpp:81: multiple definition of `__vector_17'
Robot Control\Melody.cpp.o:C:\Program Files (x86)\Arduino\libraries\Robot_Control\src/Melody.cpp:7: first defined here
collect2.exe: error: ld returned 1 exit status
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

And this is the list of errors I get when I include ServoTimer2.h:

Arduino: 1.6.5 (Windows 7), Board: "Arduino Robot Control"

In file included from exponent.ino:30:0:
C:\Program Files (x86)\Arduino\libraries\ServoTimer2/ServoTimer2.h:41:17: error: conflicting declaration 'typedef uint8_t boolean'
 typedef uint8_t boolean;
                 ^
In file included from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src/Arduino_LCD.h:23:0,
                 from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src/ArduinoRobot.h:4,
                 from exponent.ino:25:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'
 typedef bool boolean;
              ^
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

If needed, my original code is:

#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
#include <Servo.h>

Servo myservo;

void setup() {
  // initialize the robot
  Robot.begin();
  Robot.beginTFT();

  myservo.attach(D2);
  // open the serial port to send the information of what you are reading
  Serial.begin(9600);  
}


void loop()
{

  int potent, scaledpos;

  potent = map(Robot.knobRead(), 0, 1023, -255, 255);
  scaledpos = (179.0/255.0)*(1.0*potent + 255.0) / 2.0;

  myservo.write(scaledpos);

}

Thanks!

Zouje.