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
原文:http://www.cnblogs.com/aipu/p/3823292.html