ccs编译问题error: unrecognized token

cumtliyan   2010-8-24 10:16 楼主

j = *(UNIT_VOL_BASEADDR + wUintIndex );    直流电压遥测
 WriteBYC((wUintIndex + YCPOSITION_DCA1),j); //变化遥测    
 Report.DCVol[wUintIndex] = j;  

 

 

程序老实在这块报错,错误如下

"SVG_interupt.c", line 119: warning: variable "addr" was declared but never referenced
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: expected an expression
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
13 errors detected in the compilation of "SVG_interupt.c".

>> Compilation failure

[SVG_main.c] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -fr"C:/CCStudio_v3.3/MyProjects/svg/svg/Debug" -i"C:/CCStudio_v3.3/MyProjects/svg/include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../svg/Debug.lkf" "SVG_main.c"
"SVG_interupt.c", line 119: warning: variable "addr" was declared but never referenced
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: expected an expression
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token
"SVG_interupt.c", line 306: error: unrecognized token

回复评论 (3)

解决了,原来是少一个注释号
点赞  2010-8-24 10:23

解决了,原来是少一个注释号

请问是少了什么注释号,我也出现这个问题...谢谢了~
点赞  2011-6-13 10:14
j = *(UNIT_VOL_BASEADDR + wUintIndex );    直流电压遥测

j = *(UNIT_VOL_BASEADDR + wUintIndex );  //  直流电压遥测

少了这个。哈哈
工程 = 数学+物理+经济
点赞  2011-10-11 08:33
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复