Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for C++17/20 #818

Open
Beafantles opened this issue Jan 5, 2024 · 1 comment
Open

Support for C++17/20 #818

Beafantles opened this issue Jan 5, 2024 · 1 comment

Comments

@Beafantles
Copy link

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:

image

It seems Arduino.h header redefines abs macro and it conflicts with the stdlib (for C++17/20).

@AgainPsychoX
Copy link

Still not working :C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants