【error】LINK1123: failure during conversion to COFF: file invalid or corrupt

意思是由于COFF标识转换失败。而在连接中完成此项工作的是cvtres.exe。这个错误的原因是存在多个版本的cvtres.exe。

所以找到这个文件删掉就好了

error C1189: #error : Please use the /MD switch for _AFXDLL builds

做MFC时遇到了这个问题,解决方法如下:
修改设置:工程(Project)-> 属性(Properties)-> 配置属性(Configuration Properties)-> c/c+±> 代码生成(Code Generation)->运行库(Use run-time library)->多线程调试DLL(/MD)

猜你喜欢

转载自blog.csdn.net/weixin_43580841/article/details/83931008
今日推荐