This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: L6218E: Undefined symbol __rt_stackheap_init (referred from startup.o).

Hi everybody ,

When I write them below in startup.s of my project, the linker report error
"Error: L6218E: Undefined symbol __rt_stackheap_init (referred from startup.o)."
How should I do to include C/C++ library that linker can locate the function?

.....

IMPORT __rt_stackheap_init

IMPORT __rt_lib_init

bl __rt_stackheap_init

bl __rt_lib_init

ldr r0, =main

bx r0

0