Skip to content

Software Serial clash with Margay #4

@ericbarefoot

Description

@ericbarefoot

With the following MWE:

#include "Margay.h"
#include "Matbotix.h"

void setup() {}
void loop() {}

I get the following compiler error:

libraries/SoftwareSerial/SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':
(.text+0x0): multiple definition of `__vector_4'
libraries/Margay_Library/Margay.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

A quick internet suggests that this means SoftwareSerial and some part of Margay are fighting for the same timer or pin-change interrupt. I do not know enough at the moment to diagnose which resource the two libraries are trying to fight over, so I am dropping this here in case someone else will be able to identify it faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions