Problem with <VirtualWire.h> and <Servo.h>

Hi guys,

I'm having problem when I try to upload my code which contains both librarys.
When I // comment on of them, upload runs smoothly.
I'm getting this error:

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'
VirtualWire\VirtualWire.cpp.o:C:\Program Files (x86)\Arduino\libraries\VirtualWire/VirtualWire.cpp:792: first defined here
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

Someone wrote that the problem is that both VirtualWire and Servo want to use the Timer1 hardware
timer.

Is there any solution for this?

Try the Timer2 servo library?

Tried with no luck...
Now I'm getting this error:

In file included from C:\Program Files (x86)\Arduino\libraries\VirtualWire/VirtualWire.h:269:0,
** from ALARM_BT_SONAR_RF_v4.ino:6:**
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: conflicting declaration 'typedef bool boolean'
typedef bool boolean;
** ^**
In file included from ALARM_BT_SONAR_RF_v4.ino:1:0:
C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:59:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean'
typedef uint8_t boolean;

That's a completely different error, and much simpler to fix (and one reason I avoid using "boolean")

AWOL:
That's a completely different error, and much simpler to fix (and one reason I avoid using "boolean")

Can you give me some tips AWOL?
Again, when I comment Timer2 library, I haven't any errors...

C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:59:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean'
typedef uint8_t boolean;

Just comment-out the typedef in "ServoTimer2.h"

AWOL:

C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:59:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean'

typedef uint8_t boolean;



Just comment-out the typedef in "ServoTimer2.h"

Did you meant on this?

typedef uint8_t boolean;

Because I'm getting this after I commented:

In file included from ALARM_BT_SONAR_RF_v4.ino:1:0:
C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:96:2: error: 'boolean' does not name a type
** boolean attached(); // return true if this servo is attached**
** ^**
C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:116:2: error: 'boolean' does not name a type
** boolean attached(int); // return true if the servo on the given channel is attached**

Probably on both.

I really don't know why they bothered to rename "bool" as "boolean".