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

修改配置属性--》常规---》MFC的使用  在静态库中使用 MFC 

MFC fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC_第1张图片

调试程序时出现以下问题:d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h(24): fatal error 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]。

按照提示,作出以下修改:

MFC fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC_第2张图片

 

你可能感兴趣的:(MFC fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC)