ArduinoCore-mbed
ArduinoCore-mbed copied to clipboard
Support for C++17/20
Hello, I’m trying to build a project for my Raspberry Pi PIco and I was wondering if I could use C++17/20 for it. However, it seems like there are some conflicts with the abs macro.
My main.cpp file is completely empty (it just includes Arduino.h header):
#include "Arduino.h"
void setup() {}
void loop() {}
However, when I try to build the project, tons of errors are encountered, the first one being related to abs macro (I believe all other ones are related to that one specific error). Here’s a part of the log below:
It seems Arduino.h header redefines abs macro and it conflicts with the stdlib (for C++17/20).
Still not working :C