Skip to content

Arduino 1.6.6 now requires function prototypes in sketches (preprocessor changed?) #1066

Closed
@ladyada

Description

@ladyada

or at least, all my code didnt work without em :)

e.g.

setup() {
// stuff
}

loop() {
// do things
 myfunction();
}

void myfunction() {
//code
}

no longer works without sticking void myfunction();
at the top (before loop())
is it a big deal? not really, but its ... unusual since neither avr compilation requires nor was this required before.
Its mentioned here https://www.arduino.cc/en/Main/FAQ
"Your sketch undergoes minor changes (e.g. automatic generation of function prototypes) and then is passed directly to a C/C++ compiler (avr-g++)."
perhaps that step is not done anymore?
anyways, ill look into it too

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions