error message compiling ...


When trying to compile I got this error message :

libraries/Servo/avr/Servo.cpp.o (symbol from plugin): In function ServoCount': (.text+0x0): multiple definition of __vector_17'
libraries/RadioHead/RH_ASK.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gw/wrfpy5rj6qx79b6s6q05zkkh0000gn/T/AppTranslocation/12CC4126-D8F3-4D2C-9E5F-9C6516733C64/d/Arduino Disabling relaxation: it will not work with multiple definitions
collect2: error: ld returned 1 exit status
Multiple libraries were found for "Servo.h"
Used: /Users/benoit/Documents/Arduino/libraries/Servo
Not used: /private/var/folders/gw/wrfpy5rj6qx79b6s6q05zkkh0000gn/T/AppTranslocation/12CC4126-D8F3-4D2C-9E5F-9C6516733C64/d/Arduino
exit status 1

What could this be ? It seems like a problem with Servo.h ...

It isn’t a problem with Servo.h

It’s a problem with the code you didn’t post.

I’ve narrowed it down to some interference between

#include <RH_ASK.h>
#include <Servo.h>

loading <RH_ASK.h> alone is fine.
loading <Servo.h> alone is fine too.

But with both together they seem to interfere with each other and give me that error…

Because they both use the same timer.
Look for an alternate servo library

thanks I'll look into it...
if anybody got a recommended alternate library, that'd be appreciated :slight_smile:

Much appreciate your insight @TheMemberFormerlyKnownAsAWOL