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.

TM4C129ENCPDT: identifier "_LIBCPP_END_NAMESPACE_STD" is undefined

Part Number: TM4C129ENCPDT


While trying to compile a static library for my project I get the following error:

"C:/ti/ccs1030/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include/libcxx/__nullptr", line 55: error #20: identifier "namespace" is undefined
"C:/ti/ccs1030/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include/libcxx/__nullptr", line 56: error #66: expected a ";"
"C:/ti/ccs1030/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include/libcxx/cstddef", line 51: error #66: expected a ";"
"C:/ti/ccs1030/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include/libcxx/cstddef", line 56: error #66: expected a ";"
"C:/ti/ccs1030/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include/libcxx/cstddef", line 61: error #20: identifier "_LIBCPP_END_NAMESPACE_STD" is undefined

in the file cstdlib located at C:\ti\ccs1030\ccs\tools\compiler\ti-cgt-arm_20.2.5.LTS\include\libcxx\

The definition is in the same folder in the file __config

// TI compilers using libc++ always accept inline namespaces
#define _LIBCPP_BEGIN_NAMESPACE_STD namespace std { inline namespace _LIBCPP_NAMESPACE {
#define _LIBCPP_END_NAMESPACE_STD  } }
#define _VSTD std::_LIBCPP_NAMESPACE

Can anyone help?

Thanks

  • It would help if I could see the preprocessor listing file.  Please add the build option --gen_preprocessor_listing, then perform the build again.  This creates a file with the same name as the source file, with the extension changed to .rl.  Next, add the file extension .txt to it to form a name similar to source_file.rl.txt.  Attach that file to your next post.  In addition, please show the invocation of the compiler, with all the options exactly as the compiler sees them.  Please copy-and-paste the text, and do not use a screen shot.

    Thanks and regards,

    -George