本帖最后由 dudongdao 于 2009-8-15 21:10 编辑
就下面这个定义
class McuHardWareInit
{
private:
inline void PortInit(void);
};
inline McuHardWareInit::void PortInit(void)
{
DDRA = 0X00
PORTA = 0X00;
DDRB = 0X00
PORTB = 0X00;
DDRC = 0X00
PORTC = 0X00;
DDRD = 0X00
PORTD = 0X00;
DDRE = 0X00
PORTE = 0X00;
}
出现的错误
Updating build tree...
mcuinit.cpp
Error[Pe040]: expected an identifier F:\work\work\sdi矩阵\software\src\global.h 15
Error[Pe325]: inline specifier allowed on function declarations only F:\work\work\sdi矩阵\software\src\global.h 15
Error[Pe065]: expected a ";" F:\work\work\sdi矩阵\software\src\global.h 15
Warning[Pe012]: parsing restarts here after previous syntax error F:\work\work\sdi矩阵\software\src\mcuinit.cpp 47
Total number of errors: 3
Total number of warnings: 1 |