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

Compilation error #78

Closed
leobel96 opened this issue Mar 20, 2018 · 6 comments
Closed

Compilation error #78

leobel96 opened this issue Mar 20, 2018 · 6 comments
Labels
Milestone

Comments

@leobel96
Copy link

I'm trying to compile the "NMEAsimple.ino" example from https://github.com/SlashDevin/NeoGPS with platformio in VSCode for NodeMCU board but I'm getting a lot of:
error: 'constexpr' needed for in-class initialization of static data member 'const float
Compiling it with Arduino IDE returns no error so, I think, it's a PlatformIO compiler error.

@ivankravets
Copy link
Member

@valeros do you have any ideas?

@leobel96
Copy link
Author

leobel96 commented Mar 20, 2018

@leobel96
Copy link
Author

@ivankravets no solution yet?

@valeros
Copy link
Member

valeros commented Mar 27, 2018

Hi @leobel96 !
As a workaround, could you please try to add the next line to your platformio.ini

build_flags = -D ARDUINO=10803

@leobel96
Copy link
Author

@valeros Thank you!! Now it compiles!! What is this? Should I always include that line in platformio.ini file?

@ivankravets ivankravets added this to the 1.7.0 milestone Apr 12, 2018
@ivankravets
Copy link
Member

Is fixed in upcoming release

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

No branches or pull requests

3 participants