You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Arduino IDE attempts to generate the prototypes for a function where the types that are a part of that prototype are defined in a header file, the IDE does not always include the header file defining the type before the generated prototype is emitted to the file that is passed into G++.
Hi @zachdeibert ,
this is a known limitation of the prototype generator; we don't move includes around so main sketch should include all needed headers. Wound you mind moving the issue to https://github.com/arduino/arduino-builder as a feature request? Thanks!
When the Arduino IDE attempts to generate the prototypes for a function where the types that are a part of that prototype are defined in a header file, the IDE does not always include the header file defining the type before the generated prototype is emitted to the file that is passed into G++.
Code is available here
Build Output:
C++ file generation:
Workaround: Including all header files into the main INO fixes the problem, but that should not be required.
The text was updated successfully, but these errors were encountered: