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.

[参考译文] __STDC_VERSION__宏扩展卡在201710L 上

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1282630/__stdc_version__-macro-expansion-stuck-on-201710l

您好!

我使用的是 CCS12.4和编译器2.1.3.LTS。 使用空项目示例、我将语言从默认(gnu17)更改为 gnu99。

我可以在 make 文件中看到-std=gnu99、然后单击下面的#warning "trap"、这样我就对编译器确实是 gnu99感到满意。

但是、宏扩展从未与201710L 相比发生变化。 我已重建索引、但没有区别。

也许这是一个 Eclipse 问题,没有什么可以做,但我认为我会报告。