典型错误如下:
Warning : C2214W: Old-style function 'ARMEnableInt'
ucos_ii.h line 212
Project: ucos.mcp, Target: Debug, Source File: main.C
Error : C2312E: storage class 'typedef' not permitted in context <formal parameter type declaration> - ignored
ucos_ii.h line 212
Project: ucos.mcp, Target: Debug, Source File: main.C
Error : (Serious) C2333E: Non-formal 'OS_EVENT' in parameter-type-specifier
ucos_ii.h line 218
Project: ucos.mcp, Target: Debug, Source File: main.C
Error : (Serious) C2333E: Non-formal 'OS_MBOX_DATA' in parameter-type-specifier
ucos_ii.h line 263
Project: ucos.mcp, Target: Debug, Source File: main.C
Error : C2285E: expected ';' or ',' - inserted ';' before '*'
ucos_ii.h line 423
Project: ucos.mcp, Target: Debug, Source File: main.C
Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_EVENT'
ucos_ii.h line 423
Project: ucos.mcp, Target: Debug, Source File: OS_CORE.C
等等,只要是定义结构体的地方就报错,还有只要是出现typedef的地方也报错,我用的是2.52的源代码,何故?
期待各位兄弟的点拨!谢谢!
[align=right][color=#000066][此贴子已经被作者于2006-2-21 20:00:37编辑过][/color][/align]