#ifdef _DLL
#ifndef _AFXDLL
#error Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
#endif
#endif 我不知道如何修复这个错误,如果有人能帮我,那就太好了,我试过更改mfc属性,但仍然不能工作。
发布于 2022-09-27 13:17:31
从错误消息设置:项目属性->高级->使用MFC =“在共享DLL中使用MFC”与设置:-> C/C++ ->代码生成->运行时库->“多线程调试DLL (/MDd)”相冲突。
确保两者都按上述设置。例如,如果尝试使用“在静态库中使用MFC”进行构建,则会得到此错误。此外,请确保这些设置不会在冲突状态下被继承。
https://stackoverflow.com/questions/73858774
复制相似问题