枕上从妨一夜睡,灯前读尽十年诗。这篇文章主要讲述error LNK2019: 无法解析的外部符号 WinMain,error LNK2001: 无法解析的外部符号 WinMain相关的知识,希望能为你提供帮助。
一、问题
?????Debug版本:?????
?1> MSVCRTD.lib(exe_winmain.obj) : error LNK2019: 无法解析的外部符号 WinMain,该符号在函数 "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 中被引用1> E:\\worspace_Gis\\qgis-3.10.0\\dependency\\SQLite3\\x64\\Debug\\SQLite3d.exe : fatal error LNK1120: 1 个无法解析的外部命令?
?????Release版本:?????
?1> MSVCRT.lib(exe_winmain.obj) : error LNK2001: 无法解析的外部符号 WinMain1> E:\\worspace_Gis\\qgis-3.10.0\\dependency\\SQLite3\\x64\\Release\\SQLite3.exe : fatal error LNK1120: 1 个无法解析的外部命令?
![error LNK2019: 无法解析的外部符号 WinMain,error LNK2001: 无法解析的外部符号 WinMain](https://img.songbingjia.com/20220309/35770c0f1038435e85da62fa3e6e4f2f.jpg?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
![error LNK2019: 无法解析的外部符号 WinMain,error LNK2001: 无法解析的外部符号 WinMain](https://img.songbingjia.com/20220309/abd06c352be1411db0801d29acfe8fee.jpg?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
三、解决办法? Visual Studio的资源管理器窗口中选中发生错误的工程,右键选择属性菜单,弹出如下所示的??属性设置窗口,选择链接器,子系统??;然后依据错误的具体信息选择对应的子系统即可。?
![error LNK2019: 无法解析的外部符号 WinMain,error LNK2001: 无法解析的外部符号 WinMain](https://img.songbingjia.com/20220309/c2258cadb1da4a40af5dcf5da6ebdbc4.jpg?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
?如果您觉得文章对您有用,记得?点赞收藏哦?!谨防丢失!?
【error LNK2019: 无法解析的外部符号 WinMain,error LNK2001: 无法解析的外部符号 WinMain】
推荐阅读
- ROS移植机器人小车(catkin_make过程中碰到的各种小问题)
- 更改Dynamics 365 Online登录页面的风格提示背景等信息
- uboot使用命令整理(2016.03)
- Python Pandas库教程(超详细)
- Java Agent(通灵之术)
- i.MX6ULL开发笔记 | 02 - i.MX6ULL启动方式与镜像格式
- 基于消息队列(RabbitMQ)实现延迟任务
- Nginx 日志格式
- 怎么通俗的理解Netty呢()