Linker error with Adafruit Feather M0

Heh. Actually what #include <Arduino.h> causes is that setup and loop are declared as extern "C" so they don’t get the C++ name mangling! The startup assembler files reference the functions by the unmangled name. This one also works :slight_smile:

extern "C" void setup()
{
}

extern "C" void loop()
{
}
1 Like