我在 Visual Studio 中遇到错误,请为 _AFXDLL 构建使用/MD 开关所以如果我取消定义_AFXDLL,我的程序会出错吗?
I encountered an error in Visual Studio, Please use the /MD switch for _AFXDLL builds
so if I undefine the _AFXDLL, will my program go wrong?
CRT 链接和 MFC 链接的设置必须一致.所以,实际上,这个问题有两个可能的答案:
Settings for CRT linking and MFC linking must be coherent. So, actually, there are two possible answers at this question:
使用/MT(属性 -> C/C++ -> 代码生成)和静态 MFC(属性 -> 通用 -> MFC 的使用)
Use /MT (Properties -> C/C++ -> Code Generation) and static MFC (Properties -> General -> Use of MFC)
使用/MD(属性 -> C/C++ -> 代码生成)和共享 MFC(属性 -> 通用 -> MFC 的使用)
Use /MD (Properties -> C/C++ -> Code Generation) and shared MFC (Properties -> General -> Use of MFC)
这篇关于#error 请使用/MD 开关进行 _AFXDLL 构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
读取输入文件,最快的方法?read input files, fastest way possible?(读取输入文件,最快的方法?)
在 C++ 中读取格式化输入的最简单方法?The easiest way to read formatted input in C++?(在 C++ 中读取格式化输入的最简单方法?)
从 .txt 文件读取到 C++ 中的二维数组Reading from .txt file into two dimensional array in c++(从 .txt 文件读取到 C++ 中的二维数组)
如何在 C++ 中模拟按键按下How to simulate a key press in C++(如何在 C++ 中模拟按键按下)
为什么在 cin.ignore() 之后没有 getline(cin, var) 读取Why doesn#39;t getline(cin, var) after cin.ignore() read the first character of the string?(为什么在 cin.ignore() 之后没有 getline(cin, var) 读取
scanf 格式输入的 cin 类比是什么?What is the cin analougus of scanf formatted input?(scanf 格式输入的 cin 类比是什么?)