首页 > 其他 > 详细

错误之unresolved external symbol

时间:2014-07-04 00:06:36      阅读:698      评论:0      收藏:0      [点我收藏+]
1>WinMain.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function _WinMain@16
2>WinMain.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
3>WinMain.obj : error LNK2019: unresolved external symbol __imp__GetMessageW@16 referenced in function _WinMain@16
4>WinMain.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _WinMain@16
5>WinMain.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _WinMain@16

错误在linker中 加入依赖项,解决办法是在程序头加入两行:

#pragma comment(lib,"user32.lib")
#pragma comment(lib,"gdi32.lib")

 

错误之unresolved external symbol,布布扣,bubuko.com

错误之unresolved external symbol

原文:http://www.cnblogs.com/aipu/p/3823292.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!