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

Compiling error in USB_device.h #47

Closed
ghost opened this issue Mar 1, 2019 · 2 comments
Closed

Compiling error in USB_device.h #47

ghost opened this issue Mar 1, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 1, 2019

When compiling a simple sketch in platformio with
#include <Arduino.h>
the following error comes up:

[...]\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\4.8.4\bits\basic_string.h: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(const std::basic_string<_CharT, _Traits, _Alloc>&) const':
[...]\framework-arduinosam\system\sam\libsam/include/USB_device.h:364:25: error: expected unqualified-id before '(' token

#define Min(a, b)       (((a) < (b)) ?  (a) : (b))
^

The macro seems perfect and I never use it in my code, so what could have gone wrong?

@ivankravets ivankravets transferred this issue from platformio/platformio-pkg-framework-arduinosam Mar 4, 2019
@ivankravets
Copy link
Member

Could you provide a simple PlatformIO project to reproduce this issue?

@ghost
Copy link
Author

ghost commented Mar 27, 2019

It now compiles! Perhaps it's a bug in VS Code?

@ghost ghost closed this as completed Mar 27, 2019
This issue was closed.
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

1 participant