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.

[参考译文] CCS/TM4C1294NCPDT:编译器#39;自己的工具在更改c++方言后抛出错误

Guru**** 2601915 points
Other Parts Discussed in Thread: TM4C1294NCPDT

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/627502/ccs-tm4c1294ncpdt-compiler-s-own-tools-throw-errors-after-changing-c-dialect

零件号:TM4C1294NCPDT

工具/软件:Code Composer Studio

我在CCSV6中遇到了一个有趣的问题:我进入了语言选项,其中C方言和C++的框都是空白的。

出于好奇,我将c++方言更改为C+03模式,并进行了编译。 突然间,我在编译时遇到了这个错误:  

#327 inline说明符仅允许在函数声明中使用.ccsproject /rovboard_fardon line 15,外部位置:C:\ti\ccsv6\tools\compiler\ti-CGT-arm_works.5\include\cstdlib 5.2 C/C++ problem

我把它改回空白处,错误仍然存在。 我下载了编译器版本17来解决问题...但问题仍然存在。

让编译器自己的include文件kill本身有点令人担忧。 我现在不能摆脱它的事实令人震惊。

从优点来看,我认为这让我转向CCS V7,只要是因为我现在可以解决这个问题的唯一方法是“灼热地球”和“获得全新的下载”,除非有人能告诉我这里发生了什么。

它似乎设置了以下标志:

-mv7m4 --code_state=16 --float_support=FPv4SPD16 -me --preinclude="stdbool.h"--preinclude="stdint.h"--define=cs="cmc"--define=part _TM4C1294NCPDT -g --c99 --gcc --diag_off=abi=rew_error=225_off-display_off_diag=abi_error=abi=-225  

(我后来尝试添加禁用内联以查看是否有帮助,但没有)