error compiling for arduino uno

i have a program for radio controlling an rc car everytime i verify it or try to upload it it gives me the error

libraries\Servo\avr\Servo.cpp.o (symbol from plugin): In function `ServoCount':

(.text+0x0): multiple definition of `__vector_11'

libraries\VirtualWire\VirtualWire.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "VirtualWire.h"
Used: C:\Users\leojd\Documents\Arduino\libraries\VirtualWire
Multiple libraries were found for "Servo.h"
Used: C:\Program
exit status 1
Error compiling for board Arduino/Genuino Uno.

is there anything i can do i have tried two different arduino unos to no difference

Servo and VirtualWire both use the same hardware timer (namely timer1 - in completely different modes, too). They cannot be used at the same time.

is there another servo library that could work then?

i think somewhere there is a Servo library that uses Timer2 instead? Not sure what it's called or where to find it, but that might be enough for you to find it.

ihfan342:
i have tried two different arduino unos to no difference

Compiling does not need a board to be connected. So using different Unos has no effect on the compile result

Adding to DrAzzy's last reply, the results of a google search for arduino servo timer 2 library

DrAzzy:
i think somewhere there is a Servo library that uses Timer2 instead? Not sure what it's called or where to find it, but that might be enough for you to find it.

It is helpfully called ServoTimer2.h It works but you need to take care because commands are different from the standard Servo.h. The write() command only takes pulse widths in microseconds NOT angles so you'll probably need some minor code changes.

Steve