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.

[参考译文] 编译器/CCCStudio-C2000:CCS v7不支持结构封装属性

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/618781/compiler-ccstudio-c2000-ccs-v7-does-not-support-structure-packed-attribute

部件号:CCStudio-C2000

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

我正在使用CCS v 7.0 .0.0.0043万。 但它为"struct __attribute___(packed){"此语法抛出错误。
错误>>“#1167 invalid attribute for "struct <unnamed>"..... line 138 C/C++ problem"

我如何使用它,或者如果有任何替代方案可用?

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

    不幸的是,C2000编译器不支持封装结构。

    谢谢,此致,

    -George

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

    —尼莱