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/TMS320F2.8334万:CCS7

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/632641/ccs-tms320f28334-ccs7

部件号:TMS320F2.8334万

工具/软件:Code Composer Studio

你(们)好

我刚刚将CCS Form version 5.2 更改为7.0 ,现在我收到以下错误消息:

 

>>编译失败

source/subdir_rules.mk:30:目标'source/xxxxxxx.obj'的配方失败

"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000 16.9 .3.LTS/include/string.h",第84行:错误#18:需要一个")"

"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000 16.9 .3.LTS/include/string.h",第90行:错误#18:需要一个")"

"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000 16.9 .3.LTS/include/string.h",第91行:错误#18:需要一个")"

"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000 16.9 .3.LTS/include/string.h",第98行:错误#18:需要一个")"

"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000 16.9 .3.LTS/include/string.h",第99行:错误#18:需要一个")"

"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000 16.9 .3.LTS/include/string.h",第100行:错误#18:需要一个")"

"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000 16.9 .3.LTS/include/string.h",第104行:错误#18:需要一个")"

 

我有点困惑,因为错误在string.h中,您是否知道如何解决此问题?

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

    所有这些行都使用"字符串"符号,而周围的任何行都不使用。  因此,我怀疑在您#include <string.h>之前,您的源代码#define的"string"到其他内容。   

    如果这种猜测是错误的,请按照 How to Submit a Compiler Test Case中的说明提交测试用例。  但提交一个附加文件。  使用选项 --gen_preprocessor_listing.创建原始列表文件。  请在 C2000编译器手册中阅读有关该选项的更多信息。  您最后使用了一个.RL文件。  在将其附加到下一个论坛帖子之前,请在其中添加文件扩展名.txt。

    谢谢,此致,

    -George