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.

CODECOMPOSER: Error using fstream

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: CCSTUDIO

Hello,

I have the error :

CCStudio_v9.0.1/ccs/tools/compiler/ti-cgt-c6000_8.3.2/include/libcxx/fstream", line 486: error #136: class "std::__2::ios_base" has no member "__c6xabi_trunc"

while compiling this kind of code

#include <fstream>
#include <iostream>
#include <cmath>

std::fstream    m_WriteFile;
m_WriteFile.open("complexity.txt", std::ios::app);

Any idea ?

Regards,

David

  • For the source file that is being built when this occurs ...

    CCStudio_v9.0.1/ccs/tools/compiler/ti-cgt-c6000_8.3.2/include/libcxx/fstream", line 486: error #136: class "std::__2::ios_base" has no member "__c6xabi_trunc"

    I'd appreciate if you would submit two things.  One, please follow the directions in the article How to Submit a Compiler Test Case to create a preprocessed file, but don't submit just that one file.  Two, build the source file a second time, but add the option --gen_preprocessor_listing.  This option creates a preprocessing listing file.  It has the same name as the source, with the file extension changed to .rl.  Please put both the files into a zip, then attach it to your next post.  Don't forget to show all the build options, exactly as the compiler sees them.

    Thanks and regards,

    -George