今天用CCS3.3变了一个28335的程序,但是在编译时出现好多错误,都是一个类型的,比如
"HESS.c", line 64: error: expected a ";"
"HESS.c", line 85: warning: parsing restarts here after previous syntax error
"HESS.c", line 91: warning: this declaration has no storage class or type specifier
"HESS.c", line 91: error: declaration is incompatible with "void InitAdc(void)" (declared at line 23 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_GlobalPrototypes.h")
"HESS.c", line 100: warning: this declaration has no storage class or type specifier
"HESS.c", line 100: error: declaration is incompatible with "void InitPieCtrl(void)" (declared at line 147 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_GlobalPrototypes.h")
"HESS.c", line 103: error: this declaration has no storage class or type specifier
"HESS.c", line 103: error: declaration is incompatible with "volatile unsigned int IER" (declared at line 37 of "C:/CCStudio_v3.3/MyProjects/wangyu/include/DSP2833x_Device.h")
"HESS.c", line 104: error: this declaration has no storage class or type specifier
"HESS.c", line 104: error: declaration is incompatible with "volatile unsigned int IFR" (declared at line 36 of "C:/CCStudio_v3.3/MyProjects/wangyu/include/DSP2833x_Device.h")
"HESS.c", line 112: warning: this declaration has no storage class or type specifier
"HESS.c", line 112: error: declaration is incompatible with "void InitPieVectTable(void)" (declared at line 148 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_GlobalPrototypes.h")
"HESS.c", line 124: warning: this declaration has no storage class or type specifier
"HESS.c", line 124: error: declaration is incompatible with "void DataClear()" (declared at line 38)
"HESS.c", line 132: error: this declaration has no storage class or type specifier
"HESS.c", line 132: error: declaration is incompatible with "volatile struct GPIO_CTRL_REGS GpioCtrlRegs" (declared at line 379 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_Gpio.h")
"HESS.c", line 132: error: expected a ";"
"HESS.c", line 133: error: this declaration has no storage class or type specifier
"HESS.c", line 133: error: expected a ";"
"HESS.c", line 135: error: this declaration has no storage class or type specifier
"HESS.c", line 135: error: declaration is incompatible with "volatile struct GPIO_DATA_REGS GpioDataRegs" (declared at line 380 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_Gpio.h")
"HESS.c", line 135: error: expected a ";"
"HESS.c", line 141: error: this declaration has no storage class or type specifier
"HESS.c", line 141: error: declaration is incompatible with "struct PIE_VECT_TABLE PieVectTable" (declared at line 196 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_PieVect.h")
"HESS.c", line 141: error: expected a ";"
"HESS.c", line 142: error: this declaration has no storage class or type specifier
"HESS.c", line 142: error: expected a ";"
"HESS.c", line 143: error: this declaration has no storage class or type specifier
"HESS.c", line 143: error: expected a ";"
"HESS.c", line 147: warning: this declaration has no storage class or type specifier
"HESS.c", line 147: error: declaration is incompatible with "void InitEPwm1Example(void)" (declared at line 31)
"HESS.c", line 148: error: this declaration has no storage class or type specifier
"HESS.c", line 148: error: expected a ";"
"HESS.c", line 149: error: this declaration has no storage class or type specifier
"HESS.c", line 149: error: expected a ";"
请问这是怎么了,我以前用的时候都没出现这个问题。请教大家了。
"HESS.c", line 150: error: this declaration has no storage class or type specifier
"HESS.c", line 150: error: expected a ";"
"HESS.c", line 153: error: this declaration has no storage class or type specifier
"HESS.c", line 153: error: declaration is incompatible with "volatile struct SYS_CTRL_REGS SysCtrlRegs" (declared at line 355 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_SysCtrl.h")
"HESS.c", line 153: error: expected a ";"
"HESS.c", line 157: error: this declaration has no storage class or type specifier
"HESS.c", line 157: error: declaration is incompatible with "volatile struct PIE_CTRL_REGS PieCtrlRegs" (declared at line 142 of "C:\CCStudio_v3.3\MyProjects\wangyu\include\DSP2833x_PieCtrl.h")
"HESS.c", line 157: error: expected a ";"
"HESS.c", line 158: error: this declaration has no storage class or type specifier
"HESS.c", line 158: error: expected a ";"
"HESS.c", line 160: error: this declaration has no storage class or type specifier
"HESS.c", line 160: error: expected a ";"
mangui zhang:
语法问题 感觉是由于你使用了中文的;号
还是少使用了;