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.
工具/软件:TI C/C++编译器
目的:
我想在 代码中使用_Static_Assert C11关键字。
问题:
Code Composer Studio 无法解决该问题
信息:
Code Composer Studio 版本:10.0.00010
编译器版本:TI v20.2.0.LTS
C 版本:C11.
这是正常的吗?
此致、
Gabriel
TI ARM 编译器支持 C11、但默认情况下不支持 C11。 添加选项--c11。 有关更多详细信息、请在 ARM 编译器手册中搜索 标题为 "更改 ANSI/ISO C/C++语言模式"的子章节。
谢谢、此致、
乔治
不幸的是、我无法重现此行为。 对于看到这些错误诊断的源文件、请按照文章 如何提交编译器测试用例中的说明进行操作。
谢谢、此致、
乔治
无法解析"函数'_Static_assert'错误来自 Eclipse 代码分析(Codan)、而不是来自编译器。 因此、这些错误不会阻止编译器编译程序。
使用 CCS 10.0.0.00010时、我无法重复该错误、因为当为 CPP 程序启用 Codan 时、分析能够解析 _Static_assert 或 static_assert。
如果您没有看到它、https://e2e.ti.com/support/tools/ccs/f/81/t/570132 将显示如何访问 Codan 属性。