CCS3.0调试问题,求大神指点,急~急~急~
时间:10-02
整理:3721RD
点击:
在CCS3.0上编译程序时出现如下错误:
error:this declaration has no storage class or type specifier
error: declaration is incompatible with "volatile struct PIE_CTRL_REGS PieCtrl"
error: expected a ";"
该错误发生在:
PieCtrl.PIEIER1.bit.INTx7 = 1;(1、3错误提示在此处)
extern volatile struct PIE_CTRL_REGS PieCtrl;(错误2提示在此处)
急求大神指点,谢谢
error:this declaration has no storage class or type specifier
error: declaration is incompatible with "volatile struct PIE_CTRL_REGS PieCtrl"
error: expected a ";"
该错误发生在:
PieCtrl.PIEIER1.bit.INTx7 = 1;(1、3错误提示在此处)
extern volatile struct PIE_CTRL_REGS PieCtrl;(错误2提示在此处)
急求大神指点,谢谢
声明的类型不对,缺少一个“;”
incompatible多半是子函数与头文件类型不匹配,你在修改时注意下,更改头文件以后要先保存再编译才能生效,直接编译新的修改是不生效的