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

C++ project linking problem

Hi everyone,

I created a C++ project and implemented some basic classes. The compilation works fine but in the linking process I get some errors. I don't really know what I do wrong. I assume someone familiar with using C++ and RealView can help.

Here are the error messages I get:

linking...
.\Obj\OrigaII_Test.axf: Error: L6218E: Undefined symbol __aeabi_unwind_cpp_pr0 (referred from new.o).
.\Obj\OrigaII_Test.axf: Error: L6218E: Undefined symbol __rt_new_handler_addr (referred from new.o).
.\Obj\OrigaII_Test.axf: Error: L6218E: Undefined symbol abort (referred from arm_exceptions_terminate.o).
.\Obj\OrigaII_Test.axf: Error: L6218E: Undefined symbol __rt_eh_globals_addr (referred from arm_exceptions_globs.o).
Target not created

Thank you,
Frank

Parents
No data
Reply
  • Again take a look at the startup files provided in your RealView MDK installation (for example Keil\ARM\Startup\Philips\LPC2300.s).

    Missing is the declaration for __initial_sp defined as:

                    AREA    STACK, NOINIT, READWRITE, ALIGN=3
    
    Stack_Mem       SPACE   USR_Stack_Size
    __initial_sp    SPACE   ISR_Stack_Size
    

Children