提示错误如下:
Compiling plutommi/customer/custresource/custnfbprogressimg.c ...
"plutommi/customer/custresource/custnfbprogressimg.c", line 16: Serious error: C2291E: <expression> expected but found '<eof>'
"plutommi/customer/custresource/custnfbprogressimg.c", line 16: Serious error: C2282E: expected '}' - inserted before '<eof>'
"plutommi/customer/custresource/custnfbprogressimg.c", line 15: Error: C2285E: expected ';' or ',' - inserted ';' before '<eof>'
plutommi/customer/custresource/custnfbprogressimg.c: 0 warnings, 1 error, 2 serious errors
经查,发现,PopulateRes.c中的PopulateResData()中的
nfb_img_res_file = fopen(NFB_IMAGE_RES_FILENAME, "a");
执行出错,或未执行,导致,生成custnfbprogressimg.c时,少生成了部分文件。
而此语句之前有注释
/* for generate string list file in first pass */
看起来是生成字串用的,
后来再进一步追查,发现是因为设置菜单的函数没有写对,
原先系统是使用ADD_APPLICATION_MENUITEM来加载菜单的,我把它改成ADD_APPLICATION_MENUITEM2的形式时,里面内容全部修改了,但是忘记添加ADD_APPLICATION_MENUITEM2中的这个数字2了。
这个问题隐藏的非常深,如果不是遇到过的,很难找到原因,除非是一行一行代码找,
而且通常情况下,都认为改个加载菜单函数改个形式能出啥错,所以这个问题非常难定位。
记录于此,引以为戒。