对‘PopulateMyAppRes’未定义的引用,可是我在Res_MyApp.c里定义了呀
resgen.log的提示如下:PopulateRes.o:在函数‘PopulateResData’中:
D:/MT6225_06B/plutommi/Customer/ResGenerator/../../MMI/Resource/PopulateRes.c:1164:对‘PopulateMyAppRes’未定义的引用
collect2: ld returned 1 exit status
make: *** Error 1
可是我在Res_MyApp.c里定义了呀,而且在PopulateRes.c也用extern声明了
Res_MyApp.c的内容如下:
#include "StdC.h"
#ifdef DEVELOPER_BUILD_FIRST_PASS
#include "PopulateRes.h"
#include "MMI_features.h"
#include "GlobalMenuItems.h"
#include "MyAppDefs.h"
#include "MyAppGprot.h"
void PopulateMyAppRes (void)
{
ADD_APPLICATION_STRING2 (STR_MYAPP_HELLO,"Hello,World","MyApp");
ADD_APPLICATION_MENUITEM ((MENU_ID_MYAPP_HELLO,
MAIN_MENU_ORGANIZER_MENUID,0,SHOW,SHORTCUTABLE,DISP_LIST,
STR_MYAPP_HELLO,IMG_MYAPP_HELLO));
ADD_APPLICATION_IMAGE2 (IMG_MYAPP_HELLO,
CUST_IMG_PATH"\\\\MainLCD\\\\MyApp\\\\SB_MyApp.bmp", "HelloWorld!");
}
#endif
PopulateRes.c中我添加的如下:
..............
extern void PopulateMyAppRes(void);
..............
PRINT_INFORMATION(("Populating MyApp Resources\n"));
PopulateMyAppRes();
................
同时我发现update时,在进行Res_XXX.c的编译时列出来的正在编译的Res_XXX.c文件中,没我的Res_MyApp.c呀,但我的Res_MyApp.c确实在plutommi\customer\CustResource\PLUTO_MMI\Res_MMI\目录下呀!同时我的Res_MyApp.c确实被系统自动复制到了plutommi\Customer\Res_MMI中了呀,系统既然都复制了为啥不编译呢?
请各位哥哥们帮帮小弟我呀! 对mtk不懂,不过怀疑是不是新加的文件没有被编译脚本加入到makefile中,去问问别人是否需要修改某一个config文件。。。。。
仅供参考,我没做过mtk 谢谢,我自己已经解决这些问题了! xiaofeitsui 发表于 2010-1-27 17:53
谢谢,我自己已经解决这些问题了!
如何解决?
页:
[1]