正文error LNK2001: 无法解析的外部符号 __imp__MessageBoxA@16IP云V管理员/2022-09-07/0 阅读 09/07小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 错误:error LNK2001: 无法解析的外部符号 __imp__MessageBoxA@16原因:本来程序的编译选项选择的是:使用标准windows库,当改为在静态库中使用MFC后就出现了上面的错误解决方法代码中添加依赖库#pragma comment(lib,"User32.lib")