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.

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