wince-GDI 测试(在线等待)

guochenfang   2008-11-21 19:33 楼主
我把\WINCE500\PRIVATE\TEST\GWES\GDI\GDIAPI这个GDIAPI TEST放在PB上,编译出错如下:
BUILD: [01:0000000110:PROGC ] Linking obj\ARMV4I\retail\GDIAPItest.dll
BUILD: [01:0000000129:ERRORE] verify.obj : error LNK2019: unresolved external symbol "long __cdecl SaveBitmap(unsigned short const *,unsigned char *,int,int,int,class cCompareResults *)" (?SaveBitmap@@YAJPBGPAEHHHPAVcCompareResults@@@Z) referenced i
n function "void __cdecl SaveSurfaceToBMP(struct HDC__ *,unsigned short *,int,int)" (?SaveSurfaceToBMP@@YAXPAUHDC__@@PAGHH@Z)
BUILD: [01:0000000130:ERRORE] verify.obj : error LNK2019: unresolved external symbol "public: void __cdecl cCompareResults::Reset(void)" (?Reset@cCompareResults@@QAAXXZ) referenced in function "void __cdecl SaveSurfaceToBMP(struct HDC__ *,unsigned s
hort *,int,int)" (?SaveSurfaceToBMP@@YAXPAUHDC__@@PAGHH@Z)
BUILD: [01:0000000131:ERRORE] global.obj : error LNK2001: unresolved external symbol "public: void __cdecl cCompareResults::Reset(void)" (?Reset@cCompareResults@@QAAXXZ)
BUILD: [01:0000000132:ERRORE] verify.obj : error LNK2019: unresolved external symbol "public: void __cdecl cCompareResults::SetMaxResults(int)" (?SetMaxResults@cCompareResults@@QAAXH@Z) referenced in function "void __cdecl SurfaceVerify(class cTdc *
,int)" (?SurfaceVerify@@YAXPAVcTdc@@H@Z)
BUILD: [01:0000000133:ERRORE] global.obj : error LNK2001: unresolved external symbol "public: void __cdecl cCompareResults::SetMaxResults(int)" (?SetMaxResults@cCompareResults@@QAAXH@Z)
BUILD: [01:0000000134:ERRORE] verify.obj : error LNK2019: unresolved external symbol "long __cdecl ComparePixels(unsigned char *,int,int,int,unsigned char *,int,int,int,class cCompareResults *,unsigned char *)" (?ComparePixels@@YAJPAEHHH0HHHPAVcComp
areResults@@0@Z) referenced in function "void __cdecl SetMaxErrorPercentage(double)" (?SetMaxErrorPercentage@@YAXN@Z)
BUILD: [01:0000000135:ERRORE] global.obj : error LNK2001: unresolved external symbol "long __cdecl ComparePixels(unsigned char *,int,int,int,unsigned char *,int,int,int,class cCompareResults *,unsigned char *)" (?ComparePixels@@YAJPAEHHH0HHHPAVcComp
areResults@@0@Z)
BUILD: [01:0000000136:ERRORE] verify.obj : error LNK2019: unresolved external symbol "long __cdecl ComparePixelsRMS(unsigned char *,int,int,int,unsigned char *,int,int,int,class cCompareResults *,unsigned char *)" (?ComparePixelsRMS@@YAJPAEHHH0HHHPA
VcCompareResults@@0@Z) referenced in function "void __cdecl SetRMSPercentage(unsigned int,unsigned int,double,double,double,double)" (?SetRMSPercentage@@YAXIINNNN@Z)
BUILD: [01:0000000137:ERRORE] global.obj : error LNK2001: unresolved external symbol "long __cdecl ComparePixelsRMS(unsigned char *,int,int,int,unsigned char *,int,int,int,class cCompareResults *,unsigned char *)" (?ComparePixelsRMS@@YAJPAEHHH0HHHPA
VcCompareResults@@0@Z)
BUILD: [01:0000000138:ERRORE] main.obj : error LNK2019: unresolved external symbol "public: unsigned short * __cdecl cCompareResults::GetLogLine(int)" (?GetLogLine@cCompareResults@@QAAPAGH@Z) referenced in function "void __cdecl OutputLogInfo(class
cCompareResults *)" (?OutputLogInfo@@YAXPAVcCompareResults@@@Z)
BUILD: [01:0000000139:ERRORE] main.obj : error LNK2019: unresolved external symbol "int __cdecl CompactAllHeaps(void)" (?CompactAllHeaps@@YAHXZ) referenced in function ShellProc
BUILD: [01:0000000140:ERRORE] obj\ARMV4I\retail\GDIAPItest.dll : fatal error LNK1120: 7 unresolved externals

这个错误是为什么呀,似乎是跟什么全局变量有关,要加个EXTERN?还是为啥?  还有当我在用PB加载这个测试代码时,会用到F:\WINCE500\PRIVATE\TEST\GWES\GDI\IMGCOMPARE的一些函数,我想了解一下GDI\IMGCOMPARE这个是做啥的?也是测试代码还是什么?

回复评论 (2)

再添加一个:是不是缺少了一个.lib,但是具体少的是哪个.lib,这个.lib在什么地方?
点赞  2008-11-21 20:19
晕死,自己解决了,崩溃.
点赞  2008-11-24 17:02
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复