You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"voidsetup() {}
voidloop() {}
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).
The text was updated successfully, but these errors were encountered:
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 includesArduino.h
header):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 redefinesabs
macro and it conflicts with the stdlib (for C++17/20).The text was updated successfully, but these errors were encountered: