发 帖  
原厂入驻New
[问答] C6455采用ccs4.2开发使用complex.h时报错的解决办法?
2020-5-22 09:30:19  30 C6455
分享
由于程序中要用到复数的运算,故使用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
0
2020-5-22 09:30:19   评论 分享淘帖
2 个讨论
你的编译器版本是多少?
C6000上支持complex.h头文件,请看下面的wiki网站上说明。
http://processors.wiki.ti.com/index.php/C99_in_TI_Compilers
2020-5-22 10:02:36 评论

举报

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,以前的版本好像都不能正常使用
2020-5-22 10:11:44 评论

举报

只有小组成员才能发言,加入小组>>

1209个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /7 下一条

快速回复 返回顶部 返回列表