-
-
Notifications
You must be signed in to change notification settings - Fork 7k
1.6 Include Arduino.h differs if global int was used #2622
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
Comments
I think this is a dup of #1518 |
Wow. that bug is old. Why dont you (or anyone else) fix it? That really kills a lot of stuff and confuses a lot. I spent an hour to find out that my problem wasnt caused by me. Any chance to get a fix now? |
I confirm this is a preprocessor related issue and it's being tracked in several preprocessor related bugs: https://github.com/arduino/Arduino/issues?q=is%3Aopen+is%3Aissue+label%3A%22Component%3A+Preprocessor%22 Please try one of these builds |
New preprocessor tracked at #2636. Builds for testing it are available |
When I try to compile it with my own hid core. Just pasted in my sketch above. Didnt test that further. Just compile it for an external sketchbook core and it will crash. |
Fixed by #3779 |
Its a very weird bug. Feel free to edit the name of the issue, I had no better idea.
The Arduino include definition works after a global int was placed in the sketch. it does not work if it is above. If i force the include it works. Simply try the following code and comment the integer:
Can anyone explain me why this happens, so I can at least continuing developing without being afraid that the next bugfix will break my stuff? This confused me a lot and also caused my sketch to now work anymore for some reason. Using new 1.6 with Windows.
The text was updated successfully, but these errors were encountered: