TI论坛
直播中

周杰

7年用户 253经验值
私信 关注
[问答]

C6455采用ccs4.2开发使用complex.h时报错的解决办法?

由于程序中要用到复数的运算,故使用complex的类型,结果编译通不过,部分错误如下:
"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/exception", line 14: error: identifier "class" is undefined

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/exception", line 15: warning: explicit type is missing ("int" assumed)

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/exception", line 15: error: expected a ")"

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/exception", line 17: warning: explicit type is missing ("int" assumed)



"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/new", line 130: error: expected a ";"

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/cwchar", line 54: warning: typedef name has already been declared (with same type)

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/iosfwd", line 18: error: this declaration has no storage class or type specifier

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/iosfwd", line 18: error: expected a ";"

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/iosfwd", line 41: warning: parsing restarts here after previous syntax error

"D:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c6000/include/iosfwd", line 42: error: expected a declaration

回帖(2)

余少虹

2020-5-22 10:02:36
你的编译器版本是多少?
C6000上支持complex.h头文件,请看下面的wiki网站上说明。
http://processors.wiki.ti.com/index.php/C99_in_TI_Compilers
举报

周杰

2020-5-22 10:11:44
引用: vuywsdfwf 发表于 2020-5-22 15:00
你的编译器版本是多少?
C6000上支持complex.h头文件,请看下面的wiki网站上说明。
http://processors.wiki.ti.com/index.php/C99_in_TI_Compilers

已经解决了,下了几个版本的CCS,CCS5.5可以用,看了下C6000,CCS5.5用的是C6000_7.4.4,以前的版本好像都不能正常使用
举报

更多回帖

发帖
×
20
完善资料,
赚取积分