Skip to content

Build error with potential solution "error: reference to 'Print' is ambiguous" #203

Closed
@baender

Description

OS: Windows 10
IDE: Visual Studio Code with Platformio extension
Platform: Arduino MKR NB 1500 (Arm Cortex-M0 32-bit SAMD21)
Compiler: arm-none-eabi-gcc
Standard: C++11

When building a project with this configuration, an error emerges saying "error: reference to 'Print' is ambiguous". It seems that the forward declaration class Print; in tinycbor.h is causing problems when using Print in tinycbor.cpp. I played around a little and removing the forward declaration and therefore adding #include <Print.h> to tinycbor.h did the trick.

I cannot tell if this causes the code to break in other configruations. Therefore I did not initiate a merge request.

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