8 years, 11 months ago.

Where can i get Main().

Hi, I'm using Nucleo_L053R8 with a X-Nucleo-IKSO1A1. I have got the error as below Error: Undefined symbol $Super$$main (referred from retarget.o). Where can i get main() for this. thank you.

Question relating to:

Library for supporting the Nucleo Sensor Shield.

1 Answer

8 years, 11 months ago.

You write it.

That is a library, it doesn't do anything on its own.

main() is the entry point for your program, every c program must have one.

If you want an example then look at the sensor shield demo program here: https://developer.mbed.org/teams/ST-Americas-mbed-Team/code/Nucleo_Sensors_Demo/