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++编译器
您好!
标题中可能没有太多要添加的内容。 报告了类似的问题。
旧工程使用 F021闪存 API 版本 v01.15.00。
迁移原因:CCS550不能在 Windows 10 Enterprise 上运行。
在 CCS550环境中、我使用--gcc 标志进行编译(如果没有该标志、我将获得与标题中所示相同的错误)。
在 CCS900环境中、-gcc 对问题没有影响。
我希望这个问题可以在不更改代码的情况下得到解决。
在 types.h 中抛出错误:
#if defined (_TI_TMS470_V7__)
#if !defined (__GNU__)
错误"F021闪存 API 需要启用 GCC 语言扩展"
#endif
#endif
使用的编译器为:TI v18.12.2.LTS
此致
Michael
TI ARM 编译器在许多版本之前删除了对预定义名称__GNU__的支持。 请参阅 此论坛主题。
我假设您不使用-strict_ansi 选项 、该选项称为严格模式。 如果是,您可以添加选项--define=__Gnu_ 。
谢谢、此致、
乔治