Skip to content

Arduino 1.8.7 Compile Failure (Works in 1.8.5) #8014

Closed
@SukkoPera

Description

@SukkoPera

This sketch does not compile on Arduino 1.8.7, producing the following error:

G:/Arduino/TAFFY/TAFFY_V1.3/TAFFY_V1.3.ino:65:19: error: 'ricetta' was not declared in this scope

This happens because the automatically generated function prototypes are inserted too early, before struct ricetta is defined, as shown in the preprocessed sketch.

This didn't happen in Arduino 1.8.5, which put the prototypes just before the setup() function. Preprocessor output is here.

This issue was raised by user gianlucaf on the Arduino forums.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions