#error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version.

错误代码:

严重性 代码 说明 项目 文件 禁止显示状态

错误 C1189 #error:  Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] Tumbler.Roads c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.13.26128\atlmfc\include\afx.h 24

解决方法:

打开项目属性页,配置属性—> 常规—> 项目默认值—> MFC的使用—> 选择“在共享DLL中使用MFC”。

参考:

https://bbs.csdn.net/topics/390374923/

http://blog.sina.com.cn/s/blog_671f486a0102uy5t.html

https://blog.csdn.net/zhoxier/article/details/7929920

你可能感兴趣的:(VisualCpp)