Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 9 months ago.
Compile Error
/media/uploads/robjames_walker/draft2.h Hi,
I've written this code to control 2 stepper motors based on selection of type and direction using SPST switches and push button switches. My problem is that the code compiles with the error below. I'm sure that the solution is simple, but I'm not very good at software.
Error: Undefined symbol $Super$$main (referred from /extras/mbed_7130f322cb7e/TARGET_LPC1768/TOOLCHAIN_ARM_STD/mbed_sdk_boot.o).
Thanks in Advance
Rob
1 Answer
6 years, 9 months ago.
Isn't it simply because you put everything in a .h file instead of putting your main function in main.cpp? (Not sure if it needs to be main.cpp or just any .cpp).
Also did you write that much code without checking if it compiles in between? ;).