













Microsoft Visual C++ generates the link error:
msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
or
msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
The linker is looking for the entry point for a console application, but the application is being compiled and linked as a windows application (i.e. not a console application).
This error has been observed after changing the project settings from using MBCS to UNICODE characters.
Under the project settings, under the ‘Link’ tab, category ‘output’, set the ‘Entry-point symbol’ to ‘wWinMainCRTStartup’.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。