error C1189: #error : Please use the /MD switch for _AFXDLL builds---解决方案
来源:互联网 发布:usb数据采集模块 编辑:程序博客网 时间:2024/06/04 20:04
网上搜到的一般的方法都是说将”属性页->配置属性->C/C++->代码生成->运行库” 由 “多线程(/MT)” 改为 “多线程DLL(/MD)”。
其中MT静态编译的选项,而MD是动态编译的选项,如果就是想静态编译呢?
其实,在将”运行库”设置为MT的同时,再将”属性页->配置属性->常规->MFC的使用”改为”在静态库中使用MFC”
即可。
IntelliSense: error 指令: Please use the /MD switch for _AFXDLL builds —-解决方法 - ordinarydiligent - ZhangSir的博客
IntelliSense: error 指令: Please use the /MD switch for _AFXDLL builds —-解决方法 - ordinarydiligent - ZhangSir的博客
同样的道理,想要动态编译时,对于:
错误 1 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的使用”设置为”在共享DLL中使用MFC”,同时将”属性页->配置属性->C/C++->代码生成->运行库”设置为”多线程DLL(/MD)”
补充:(/MD)和(/MT)是编译Release版本用的,(/MDd)和(/MTd)是编译Debug版本用的
原文地址:http://blog.csdn.net/matitie2012/article/details/47293843
- error C1189: #error : Please use the /MD switch for _AFXDLL builds---解决方案
- error C1189: #error : Please use the /MD switch for _AFXDLL builds---解决方案
- fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
- 控制台应用MFC类库,fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
- fatal error C1189: #error: Please use the /MD switch for _AFXDLL builds
- Error C1189: #error: Please use the /MD switch for _AFXDLL builds
- Error C1189: #error: Please use the /MD switch for _AFXDLL builds
- #error : Please use the /MD switch for _AFXDLL builds
- error : Please use the /MD switch for _AFXDLL builds 的解决方法
- IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- 1 IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- 1 IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds 错误
- vs2010 MFC 错误1 IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- Mac 与 virtualbox windows7 共享文件
- warning: the gets function is dangerous and should not be used.
- Linux——Vi/Vim如何消除搜索后的关键字高亮
- 类 静态方法,属性,类方法
- vs编译时出现大量ws2def.h的错误的解决方法
- error C1189: #error : Please use the /MD switch for _AFXDLL builds---解决方案
- SQl行列互转
- 简单实现支持用户名和邮箱登录
- 编程之美_通讯录时长统计
- Shell——echo命令
- Network Manager
- 日期工具类
- numpy矩阵计算(待更新)
- SQL语句(对数据库进行操作)