This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS570LS3137: Need additional information on below error

Part Number: TMS570LS3137

Tool/software: TI C/C++ Compiler

Hi Team,

We are using .c and .cpp files in a program and generate the build from command line using ti-cgt-arm_18.1.1.LTS compiler. When we are not using the library rtsv7R4_T_le_v3D16_eabi.lib during linking time, getting the below error:

undefined
symbol
---------
Virtual function table for __cxxabiv1::__class_type_info
Virtual function table for __cxxabiv1::__si_class_type_info
Virtual function table for __cxxabiv1::__vmi_class_type_info

Want to know is there anything that can be done during compile/link time to avoid the above undefined references apart from defining it in our files to avoid error?

  • You must be using some runtime type identification (RTTI) feature of C++.  Probably the typeid operator, though I'm not certain about that.  This operation requires support from the compiler RTS library.  In ARM compiler version 18.1.x.LTS, these symbols ...

    sreenivasan m said:
    Virtual function table for __cxxabiv1::__class_type_info
    Virtual function table for __cxxabiv1::__si_class_type_info
    Virtual function table for __cxxabiv1::__vmi_class_type_info

    ... are defined in the RTS source file typeinfo.c.

    sreenivasan m said:
    Want to know is there anything that can be done during compile/link time to avoid the above undefined references apart from defining it in our files to avoid error?

    The only solution supplied is to use the RTS library that comes with the compiler.

    Thanks and regards,

    -George