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.
hello all,
i have a probleme with <stdlib.h>
void al_exit( int exit_code)
{ al_hardware_reset(exit_code); /* Notify hardware reset that we came from th_exit */ exit(exit_code); }
this function call exit(exit_code) but when i build in the link i have this error "Undefined symbol exit"
it is declared in stdlib.h as an externel fonction!
can someone help me please
But where do you think there exists a command prompt or GUI for the processor to return to if your program exists?
Don't try to write PC programs when doing embedded development. There are nowhere to send any exit code...
just i'm porting an algorithm how it uses this function, it works on IAR but doesn't with Keil
When porting algorithms, you don't just lift source code. One of the things to do is also to adapt the source code to the changed requirements for running on the new target.
One such change to consider is the meaning of calling a function like exit().
Indeed.
If no adaptation were required, it wouldn't be "porting" - it would just be copying.
It's nice when copying is sufficient - but, more usually, porting is necessary...