|
问个很初级的问题.
我现有手头有份现成串口通信的例程,是一本教材附带的全程.我直接打开该工程*.vcw,直接build,会显示"是用于X86 cpu的,failed download...之类的."
我想程序代码总应该都是通用的吧,我想把程序build成基于ARMV4的,或emulator的.但是下拉框中只能选择"wce x86 debug"和"wce x86 release".
后来我想那就自己新建一个空的project吧,选择基于ARMV4的,和emulator的.然后把例程中的*.cpp,*.h,*.rc之类导进去,再build一下不就成了.结果竟然有4错2警告如下:
--------------------Configuration: bbx86 - Win32 (WCE x86) Release--------------------
Linking...
uafxwce.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll)
uafxwce.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll)
uafxwce.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
uafxwce.lib(afxmem.obj) : warning LNK4006: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
Creating library X86Rel/bbx86.lib and object X86Rel/bbx86.exp
corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol _WinMain referenced in function _WinMainCRTStartup
X86Rel/bbx86.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
bbx86.exe - 4 error(s), 2 warning(s)
----------------------------------------------------------------------------------------------------------------------------
即使开始建project时选X86cpu,也是如此.我该怎么做才能用上这个现成的程序呢?我感觉不应该是代码本身的问题吧,可能是某些细节的问题. 现在急用这个程序啊,请高手们帮帮忙吧
|
|