惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
月光博客
月光博客
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
小众软件
小众软件
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
Vercel News
Vercel News
量子位
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
腾讯CDC
有赞技术团队
有赞技术团队

博客园 - dtor

TD-SCDMA小区初搜方法研究 (转) 面试题 the beginning of gidplus 关闭进程. - dtor - 博客园 vc任务栏隐藏 sql 连接字符串 xml 留言本 - dtor - 博客园 浮动 div javascript 读写xml --2 - dtor VC编译优化设置 javascript读写 xml - dtor - 博客园 vector 转 array 线程基础知识 VC++ 环 境 下 利 用 管 道 和 线 程 实 现 进 程 间 通 信 Windows管道技术 Windows下多线程编程技术及其实现 ATL布幔下的秘密之窗口类的秘密(果冻) atl中的mfc线程 VC制作工具条
error LNK2001: unresolved external symbol _WinMain@16
dtor · 2006-08-07 · via 博客园 - dtor

Cry about...
MS-Windows Troubleshooting


error LNK2001: unresolved external symbol _WinMain@16


Symptom:

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

Cause:

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.

Remedy:

Under the project settings, under the ‘Link’ tab, category ‘output’, set the ‘Entry-point symbol’ to ‘wWinMainCRTStartup’.