控制台应用MFC类库,fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
来源:互联网 发布:怎么注销淘宝账号 编辑:程序博客网 时间:2024/05/16 12:52
一、
错误1: unexpected end of file while looking for precompiled header directive
改正方法:工程->设置->C/C++,在分类中选中“预编译的头文件”,然后选中“自动使用预补偿页眉”或“不使用预补偿页眉”
错误2:unresolved external symbol __mbctype或unresolved external symbol ___argc
改正方法:工程->设置->C/C++,在分类中选中“常规”,然后在预处理程序定义下添加“_AFXDLL”
错误3:Please use the /MD switch for _AFXDLL builds
改正方法:工程->设置->C/C++,在分类中选中“Code Generation”,然后在Use run-time library下选中Multithreaded DLL或Debug Multithreaded DLL
二、 在#include “”的最上面加入下面几句:
#define VC_EXTRALEAN
#include <afxwin.h>
#include <afxext.h>
#include <afxdisp.h>
#include <afxdtctl.h>
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>
#endif
三、
- 控制台应用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
- 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 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
- vs2010 MFC 错误1 IntelliSense: #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 错误
- Android HttpURLConnection Socket Http (网络编程)
- C++内存管理学习笔记(7)
- ios NSString
- WPF-20:richtextbox相关操作(转)
- 新巴塞尔协议
- 控制台应用MFC类库,fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
- 生成hadoop for eclipse插件
- 何关闭Linux系统的beep声音
- org.springframework.web.context.ContextLoaderListener .
- Source Insight中的parse too complex问题
- 直方图均衡化原理
- Java XML JSON 数据解析
- 十条常用nmap命令行格式
- 史上最强劲的android模拟器命令详解