-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Version 2.0 breaks implicit function declaration #1194
Comments
Please see #1066. This seems to be caused by the new arduino-builder getting confused by some c++11 stuff found in standard library headers (memory, functional). |
Have you tried to move the function up before the setup and loop functions? On 11/12/2015 6:57 pm, "Ivan Grokhotkov" notifications@github.com wrote:
|
I was getting the same error, and yes, moving the function up does resolve the error for me. |
Yeah, it's also unable to resolve functions across different .ino files in a project. @igrr, what's the workaround, how does it get confused? |
@mangelajo see some notes in arduino/arduino-builder#68 |
I think this should not even be an option, as a lot of us are using |
I believe this is caused by the Arduino ctags (v5.8). Not much can be done in this repo. |
With the latest version, implicit function declaration no longer works, making it incompatible with many existing Arduino sketches.
Implicit function definition is a common pattern in many Arduino sketches on the net, and was an intentional choice in the original Arduino API. Unfortunately, it no longer works in the ESP8266 Arduino port.
In previous versions, this worked:
Now it produces the error "myFunction was not declared in this scope".
Here's an example that worked with the previous version but fails now, for testing.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: