Library Clash of servo.h and WaveHC.h

hi. i wasn’t sure whether to post that on the sensor topics or audio [/b] or here. forgive me if i’ve choosed badly.

maybe its an easy question, for me its really challenging.
having a setup with multiple ultrasonic sensors, stepper motor, servo motor and wave shield. all responding to the sensors. all working good except the servo i’ve just tried to insert.

getting the message that actor 17 is used multiple times and have no experience with libraries whatsoever. its kind of urgent (of course) and maybe very simple to solve?

here my code

added below cuz too long

here my error message

libraries/WaveHC/WaveHC.cpp.o (symbol from plugin): In function WaveHC::readWaveData(unsigned char*, unsigned int)':</sup> <sup>(.text+0x0): multiple definition of __vector_17’
libraries/Servo/avr/Servo.cpp.o (symbol from plugin):(.text+0x0): first defined here
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/…/lib/gcc/avr/4.9.2/…/…/…/…/avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

i tried a different library (servotimer2.h):

/libraries/ServoTimer2/ServoTimer2.h:41:17: error: conflicting declaration ‘typedef uint8_t boolean’
typedef uint8_t boolean;
^
In file included from sketch/Sensoren_und_Stepper_5.1.ino.cpp:1:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:125:14: note: previous declaration as ‘typedef bool boolean’
typedef bool boolean;

do you guys have any clues on how to solve that?

Sensoren_und_Stepper_sample.ino (18.8 KB)

do you guys have any clues on how to solve that?

It looks to me like the ServoTimer2 error is a lot easier to fix.

Servo and WaveHC are incompatible - they both need to monopolize timer1.

ServoTimer2 is the right way to go. I think you can just remove the offending line and have it work, though I'm sure there are versions of that library around that have been fixed.