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.

CCS/CC2652R: C++ std::string on GNU Compiler

Part Number: CC2652R

Tool/software: Code Composer Studio

I was trying to do some code size generation comparisons between the TI and GNU compilers.  I tried compiling a code I had running in the TI compiler but when I moved it to a GNU version I get a 

c:\ti\ccs920\ccs\tools\compiler\gcc-arm-none-eabi-7-2017-q4-major-win32\arm-none-eabi\include\c++\7.2.1\bits/basic_string.h:620: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose()'

I looked online and it looks related to different GNU ABI versions for std::string and std::list and tried to follow their suggested solutions of adding a compiler flag, but the makefile is generated and I can't figure out which config file/setting I need to change.  Does TI have a known solution to this?

Thanks,

--Jordan

  • I suspect you link with the wrong RTS library.  Please show, by copy-n-paste, the entire invocation of gcc (or g++) that links all the object files and libraries together into the final executable file. 

    Thanks and regards,

    -George