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.