Hi,
My project consists of c and c++ libraries. main function is in c source file. Whenever i am trying to call c++ functions, it is compiling and linking without errors. But c++ object are getting removed in hex (from map file).
What could be the reason ?
The linker thinks it's not being used and does dead code elimination?
And so does the code built run in any fashion? Can you step into it at all?
No I am not even able to step into main function.
I assume your installed product is MDK-ARM. Pls rename your main.c to main.cpp and retry
I tried it but still not working. It is getting stuck at BKPT0xAB.
Related to semihosting. I tried to disable semihosting but following linker errors are coming.
__use_no_semihosting was requested, but _sys_exit was referenced __use_no_semihosting was requested, but _sys_open was referenced __use_no_semihosting was requested, but _ttywrch was referenced
...ah, that's been some helpful information - regarding the stop 0xAB we have created a corresponding Knowledgebasde Article, which I assume could be solving this issue - pls refer to: http://www.keil.com/support/docs/3614.htm
I have implemented the above 3 functions referring the file attachment from the link in retarget.c. But now the following error is popping up which is making me further confused.
Error: L6200E: Symbol _sys_open multiply defined (by sys_io.o and retarget.o).
If am removing sys_open function linker error says it is referencing the sys_open() ..
I am facing the same problem mentioned in the below link.
www.keil.com/.../