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.

[参考译文] 编译器/C6000-CGT:如何在 C6000中使用 C++标准/模板库? (第44行:致命错误#1965:无法打开源文件"stddef.h")

Guru**** 3040470 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/871868/compiler-c6000-cgt-how-to-use-c-standard-template-library-in-c6000-line-44-fatal-error-1965-cannot-open-source-file-stddef-h

器件型号:C6000-CGT

工具/软件:TI C/C++编译器

大家好、

我不熟悉 CCS、我想使用 ti-cgt-C6000_8.3.4编译器为我们的器件编译 C/C++应用程序、但我遇到以下错误:  

"C:/opt/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.4/include/libcxx/cstddef、第44行:致命错误#1965:无法打开源文件"stddef.h"

这是一个非常简单的示例、如下所示:  

#include 
#define NUMEL (100)
#include 
#include 
int main (int argc、char * argv[]){
std::string mystr ("test string in cpp!");
} 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我刚刚将扩展名更改为 CPP,它现在正在运行...  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您的告知!  乔治