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

错误信息:   

#error 指令:  Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]    Gerber_Reader_ConsoleApp    c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\afx.h    24    

 

c:\program files (x86)\microsoft visual studio 14.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]
1>  AccelParse.cpp
1>c:\program files (x86)\microsoft visual studio 14.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]

 

解决方法:项目---属性---配置属性---C/C++---代码生成---运行库---设置为“多线程调试(..)”

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

你可能感兴趣的:(C++)