107-systems / 107-Arduino-Cyphal

Arduino library for providing a convenient C++ interface for accessing OpenCyphal.
https://107-systems.org
MIT License
69 stars 31 forks source link

Cannot compile; fatal error: span: No such file or directory #240

Closed walnut-engineering closed 1 year ago

walnut-engineering commented 1 year ago

:bug: fatal error: span: No such file or directory

Describe the bug

Cannot compile in VSCODE or Arduino IDE. Google search seems to indicate compiler mismatch between Cyphal library and esp32-arduino toolchain.. but I am not paid for my programming skills.

The library looks to be supported according to https://forum.opencyphal.org/t/107-arduino-uavcan-with-esp32/1096 however that post is a couple years old and something may have changed.

Minimum example code to replicate the bug

#include <107-Arduino-Cyphal.h>

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Minimum configuration to replicate the bug Please provide the configuration data used to build your application:

aentinger commented 1 year ago

Yes, ESP32 support was dropped because arduino-esp32 does not support C++17 which is a must-have requirement.