Skip to content

Arduino Nano 33 BLE: undefined reference to `main' #50

Open
@mkettn

Description

@mkettn

Many thanks for this great toolchain!
I've found a bug when compiling for Arduino Nano 33 BLE.
When linking any project (for example Blink) you get the error:
~/.arduino15/packages/arduino/hardware/mbed_nano/2.5.2/variants/ARDUINO_NANO33BLE/libs/libmbed.a(mbed_boot_gcc_arm.o): In function __wrap_main': mbed_boot_gcc_arm.c:(.text.__wrap_main+0x0): undefined reference to main'

I think the archives and objects are linked in the wrong order, since the main.cpp where the main function gets defined is compiled too.

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