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.

[参考译文] TMS320F28377D:第85行:错误#18:需要 Quot;)"

Guru**** 2482225 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1445817/tms320f28377d-line-85-error-18-expected-a

器件型号:TMS320F28377D

工具与软件:

你好。

我正在处理一个使用 Anybus B40模块的项目。

Anybus B40是一个用于轻松应用工业通信的模块。

Anybus B40提供了在 ST CubeIDE 上运行的示例源代码。

在 ST 的 CubeIDE 上编译时、它正常编译、不会出现任何错误。

然而、当在 Code Composed Studio 中编译同一程序时、

头文件中有多个行85:错误#18:预计有一个")"错误。

我确认问题仅出现在#if 语句中。

但是、我不知道为什么会出现上述错误。

我需要多位专家的帮助。

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

    您好、Kim、

    而不是使用! 操作人员。 您可以使用 ifndef 吗? 变量设置为什么?

    此致!

    Ryan Ma