Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mkettn opened this issue Oct 15, 2021 · 0 comments
Open

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

mkettn opened this issue Oct 15, 2021 · 0 comments

Comments

@mkettn
Copy link

mkettn commented Oct 15, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant