Skip to content

Linker error due to missing extern "C" in void app_main() {} in file main.cpp when using platformio #51

@mike6000

Description

@mike6000

When using platformio: got a linker error related to main.cpp
I changed main.cpp to have extern "C" directives
extern "C" void app_main() {}
The linker error disappeared after this change.
I suggest main.cpp is updated or the wiki info on how to use platformio is updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions