msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16

msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16

msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
通常, MFC项目的程序入口函数是WinMain, 如果编译项目的Unicode版本, 程序入口必须改为wWinMainCRTStartup, 所以需要重新设置程序入口:
[Project] --> [Settings] --> 选择"C/C++"属性页,
在Category中选择Output,
再在Entry-point symbol中填入wWinMainCRTStartup, 即可

 

msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16_第1张图片

你可能感兴趣的:(msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16)