Problem with motor carrier library

when i try to add the motor carrier libary to my code i get the following error on code check

In file included from /home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/ArduinoMotorCarrier.h:26:0,

from /home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/MKRMotorCarrier.h:21,

from /tmp/191351872/Untitled_aug24b/Untitled_aug24b.ino:7:

/home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/Common.h:16:6: error: multiple definition of 'enum Commands'

enum Commands {

^~~~~~~~

In file included from /tmp/191351872/Untitled_aug24b/Untitled_aug24b.ino:4:0:

/home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/Common.h:17:6: note: previous definition here

enum Commands {

^~~~~~~~

In file included from /home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/ArduinoMotorCarrier.h:26:0,

from /home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/MKRMotorCarrier.h:21,

from /tmp/191351872/Untitled_aug24b/Untitled_aug24b.ino:7:

/home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/Common.h:48:6: error: multiple definition of 'enum IRQCause'

enum IRQCause {

^~~~~~~~

In file included from /tmp/191351872/Untitled_aug24b/Untitled_aug24b.ino:4:0:

/home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/Common.h:48:6: note: previous definition here

enum IRQCause {

^~~~~~~~

In file included from /tmp/191351872/Untitled_aug24b/Untitled_aug24b.ino:11:0:

/home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/ServoMotor.h:21:7: error: redefinition of 'class mc::ServoMotor'

class ServoMotor {

^~~~~~~~~~

In file included from /home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/ArduinoMotorCarrier.h:24:0,

from /home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/MKRMotorCarrier.h:21,

from /tmp/191351872/Untitled_aug24b/Untitled_aug24b.ino:7:

/home/builder/opt/libraries/latest/arduinomotorcarrier_2_0_1/src/ServoMotor.h:21:7: note: previous definition of 'class mc::ServoMotor'

class ServoMotor {

^~~~~~~~~~

exit status 1

what can be causing this as i check code before and all is fine as soon as i add this library it gives errors

Hi @mikewitney. Please post your sketch. If you don't want to share your full code, you are welcome to provide a minimal sketch that produces the errors you are experiencing.

there wasn't really any i just connected my mkr board then added the library so it was clean really