Closed ghost closed 5 years ago
Does it work with the previous version of the platform?
No, It doesn't. Attempting to use std::map causes the above messages to appear. I tried to wrap all std::map members in conditional precompiler blocks as a test, and it seems that removing the std::maps from the code this way allows me to compile the sketch with no errors...
Hmm, I couldn't reproduce the issue. Could you put together a minimal example?
Please reopen if you still need help
I tried to compile a previously working Arduino DUE sketch with the latest 'atmelsam' updates from PlatformIO (latest version).. but syntax errors pop out when compiling, all regarding![image](https://user-images.githubusercontent.com/33262919/60274435-5496ef80-98f8-11e9-8c2c-0f05022c1302.png)
#define Max(a,b) (((a) > (b)) ? (a) : (b))
from the library source files:Expected unqualified-id before '(' token
The macro itself is correct, and I also found out that removing any occurrence ofstd::map
in my code removes the errors... is there a solution for this issue? Thanks in advance Lorenzo