9 years, 10 months ago.

compile error L6218E

I was trying to compile the lib with a device L6218E:

undefined symbol $Super$$main (referred from retarget.o)

any idea what the problem is ??

Thanks ~

Question relating to:

Inherit from Serial and use software buffers for TX and RX. This allows the UART peripherals to operate in a IRQ driven mode. Overrides most (but not all) stdio functions … buffer, BufferedSerial, BufferSerial, Serial

What mbed lib revision does your app use?

posted by Martin Kojtal 16 Jun 2014

1 Answer

9 years, 10 months ago.

Hi,

Check that you have " int main(void) " in your program!

Dave.

Thanks, it is alright now :D

posted by Terry Tam 16 Jun 2014

The reason that I am referring this lib is because I am trying to write a sample lib which inherits the Serial Class from mbed.h, I could manage to compile the code but there is no output at all when I run it.

I am thinking it might be a inheritance problem for OOP. I have no idea what's wrong and stuck by that now ...

Could anyone take a look of my sample class which is the only repository under my profile.

Thanks a lot !!

Terry

posted by Terry Tam 16 Jun 2014