Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with 107-Arduino-Cyphal when building with CMake #108

Open
joerossrobotics opened this issue Feb 6, 2025 · 0 comments
Open

Comments

@joerossrobotics
Copy link
Contributor

🐛 Bug Report

Describe the bug

When using the this library alongside the 107-Arduino-Cyphal library, I get the following linker error.

[_ZNSt17_Function_handlerIFbRK11CanardFrameEN8node_hdlMUlS2_E_EE9_M_invokeERKSt9_Any_dataS2_]+0x4): undefined reference to `ArduinoMCP2515::transmit(CanardFrame const&)'

I assume this is to do with behavior arising from these lines in the main header file:

#if defined __has_include
#  if __has_include (<libcanard/canard.h>)
#    include <libcanard/canard.h>
#    define LIBCANARD 1
#  elif __has_include (<canard.h>)
#    include <canard.h>
#    define LIBCANARD 1
#  endif
#else
#  define LIBCANARD 0
#endif

Minimum example code to replicate the bug
Just trying to build this example.

Minimum configuration to replicate the bug

  • Build Toolchain: Pico SDK & CMake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant