编译报错,谁能帮我看看
#define ZONE_ERROR_ID (0)
#define ZONE_WARN_ID (1)
#define ZONE_INFO_ID (2)
#define ZONE_FUNC_ID (3)
uint32_t
g_bootLogMask = (1 << ZONE_ERROR_ID);
// add by lfyang
g_bootLogMask |= (1 << ZONE_WARN_ID);
g_bootLogMask |= (1 << ZONE_INFO_ID);
g_bootLogMask |= (1 << ZONE_FUNC_ID);
编译报错如下:
BUILD: [02:0000037362:PROGC ] Error(s) in directory "C:\wince800\platform\common\src\common\bldr\log\".
BUILD: [02:0000037362:ERRORE] c:\wince800\platform\common\src\common\bldr\log\log.c(32) : error C2143: syntax error : missing '{' before '|=' {log="C:\WINCE800\build.log(10060)"}
BUILD: [02:0000037362:ERRORE] c:\wince800\platform\common\src\common\bldr\log\log.c(32) : error C2059: syntax error : '|=' {log="C:\WINCE800\build.log(10061)"}
BUILD: [02:0000037362:ERRORE] c:\wince800\platform\common\src\common\bldr\log\log.c(33) : error C2143: syntax error : missing '{' before '|=' {log="C:\WINCE800\build.log(10062)"}
BUILD: [02:0000037362:ERRORE] c:\wince800\platform\common\src\common\bldr\log\log.c(33) : error C2059: syntax error : '|=' {log="C:\WINCE800\build.log(10063)"}
BUILD: [02:0000037362:ERRORE] c:\wince800\platform\common\src\common\bldr\log\log.c(34) : error C2143: syntax error : missing '{' before '|=' {log="C:\WINCE800\build.log(10064)"}
BUILD: [02:0000037362:ERRORE] c:\wince800\platform\common\src\common\bldr\log\log.c(34) : error C2059: syntax error : '|=' {log="C:\WINCE800\build.log(10065)"}
[解决办法]
改成手工输入
[解决办法]
=
[解决办法]
全局变量???
[解决办法]
LZ 的代码,没有放在函数中
[解决办法]
确实是的呀!