#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++->命令行
结尾加上
/D "_AFXDLL"
方法二:
工程->属性->配置属性->C/C++->代码生成->运行库中选择——多线程调试(mtd)