Not able to add C++ libraries in keil c project -


this question has answer here:

i trying add c++ library c project in keil. code getting compiled , linked properly, not able debug not reaching main.it getting stopped @ function sys_open @ bkpt 0xab instruction. tried posting in keil forum.

http://www.keil.com/forum/59982/#msg195240

i think related semihosting in arm. tried using no semi hosting , re-implemented following functions in retarget.c. getting linker error sys_open multiply defined.

error: l6200e: symbol _sys_open multiply defined (by sys_io.o , retarget.o). 

i removing definition getting following linker error.

.\objects\stm32429i_eval.axf: error: l6915e: library reports error: __use_no_semihosting requested, _sys_open referenced 

what mistake doing??

the lib file have added project makes use of assert functions. if problem, how can re-implement assert in retarget?

push_back() causes program stop before entering main()

i got answer above link. please mark question duplicate.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -