We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using lpc1768 MCU and id keiluvesion4.
I want to create dummy main() function with different name like mains().
And i want to execute my dummy mains() function.
In startup file i replaced __main into __mains.
But compiler give error.
Undefined symbol mains (referred from sartuplpc17xx.o).
__main is different function, it unpacks the statics and later calls main
Please explain me how can i create dummy main() with different name?
See Broeker's reply - you really do not need to do that! It is pointless!
http://www.catb.org/esr/faqs/smart-questions.html#goal