Closed PhilippMolitor closed 1 week ago
I just tested the switch to gnu++17, this made it work. Still not very good for easy setup, the need for the change I lined out at the bottom should be in the readme.
Hi!
Yes, it needs cpp17. It is mentioned in readme actually: MuiPlusPlus is heavily using STL, C++17 (needs std::string_view, std::ostringstream)
I'll add needed build flags there also.
Core lib does not need it, C++11 is OK, but for mui elements I used it to simplify text strings processing.
I'd better stick to STL then to Arduino String
s 'cause I have intention to use is under ESP-IDF without Arduino core.
IDF 5.x is using cpp21 if I'm not mistaken, so this change is needed for older core. Platformio is still using IDF 4 with c11 by default.
Currently, this library does not compile under the standard ESP32 Arduino Core with PlatformIO.
Here is the build output log:
I've seen this setting on the ESPIron-PTS200 firmware:
Maybe this is relevant for it to work? It should be adjusted to compile with C++11 IMO.