2007-09-20

M$ eMbedded Visual C++编译出错

corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol _WinMain referenced in function _WinMainCRTStartup
emulatorDbg/PocketSM.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe .



原因及解决:
报错的原因是入口有问题,WinMainCRTStartup在unicode系统上应该是wWinMainCRTStartup。
Project Settings将Link >> Category / Output >> entry-point symbol改为wWinMainCRTStartup

No comments: