corneliusmunz / legoino

Arduino Library for controlling Powered UP and Boost controllers
MIT License
257 stars 34 forks source link

LegoinoCommon.h missing #include "string" #65

Open tsochatzki opened 2 years ago

tsochatzki commented 2 years ago

Hi Cornelius, while trying the trainhub.ino i get the following issue: In file included from C:\Users\tsoch\sketchbook\libraries\Legoino\src\LegoinoCommon.cpp:11: C:\Users\tsoch\sketchbook\libraries\Legoino\src\LegoinoCommon.h:30:15: error: 'string' in namespace 'std' does not name a type static std::string ColorStringFromColor(Color color); ^~ C:\Users\tsoch\sketchbook\libraries\Legoino\src\LegoinoCommon.h:30:10: note: 'std::string' is defined in header ''; did you forget to '#include '? C:\Users\tsoch\sketchbook\libraries\Legoino\src\LegoinoCommon.h:16:1: +#include

After updating the LegoinoCommon.h with the #include "string" it works without any issue.

Regards, Thomas

corneliusmunz commented 2 years ago

Hi Thomas (@tsochatzki) Many thanks for that finding! I will check this and add the missing include in the next release

corneliusmunz commented 2 years ago

@tsochatzki which version of the Arduino Esp32 have you installed? Do you use platform.io as environment or the Arduino IDE itself

arduino_esp32_version

?

tsochatzki commented 2 years ago

Hi Cornelius, iam using the Arduino IDE and the following ESP32 Version: 2.0.2