Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version 错误解决
Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version 错误解决
今天在VS2010中,用C++读取txt文本时,因为用得是CStdioFile类,所以要包含afx.h头文件, |
例如:
#include <iostream>
#include <afx.h>
using namespace std;
void main()
{
cout<<"小孩,糖果\n";
}
但是当我导入该头文件时编译就出现了报错:
1>------ 已启动生成: 项目: test, 配置: Debug Win32 ------
1>正在编译...
1>win321.cpp
1>e:\vs2010\vc\atlmfc\include\afx.h(24) : fatal 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]
1>生成日志保存在“file://e:\MyObject\test\test\test\Debug\BuildLog.htm”
1>test - 1 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
解决方法:右击项目-->属性-->配置属性-->常规,然后在右边的“项目默认值”中的“MFC的使用”选项中选择“在共享 DLL 中使用 MFC”,在运行,解决了。
Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version 错误解决相关推荐
- fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC sha
调试程序时出现以下问题:d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h(24): fatal e ...
- Building MFC application with /MD[d] (CRT dll version)requires MFC shared dll version~~~~
转自:http://www.byywee.com/page/M0/S530/530822.html 昨天编译文件时出现了Building MFC application with /MD[d] (CR ...
- afx.h(24): fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requi
问题: 在c++/cli控制台项目中,因为要使用cstdiofile类,所有包含了afx.h,但是报如下错误: "afx.h(24): fatal error C1189: #error : ...
- Building MFC application with /MD[d] (CRT dll vers
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC sha ...
- MFC编译错误:#error: Building MFC application with /MD[d\] (CRT dll version) requires MFC shared dll vers
编译错误:#error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version ...
- 【MFC相关问题】vs 2019 出现 building MFC application with /MD [d] (CRT dll version) requires MFC shared
看一看你的预处理指令里面是否包含了下面的这些: WIN32 _WINDOWS _DEBUG _CRT_SECURE_NO_WARNINGS
- fatal error C1189: #error : Building MFC application with /MD[d]
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shar ...
- fatal error C1189: #error : Building MFC application with /MD[d]
今天用VS2010编译一个vc6.0写的程序,没想到出了挺多问题,特地记录一下! 本身程序是在共享Dll中使用MFC,但为了在其他电脑也能运行,我改成了在静态库中使用MFC,于是出现下面错误: c:\ ...
- 成功解决ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a
成功解决ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a ...
最新文章
- 【WebMisCentral WMC】基于Extjs 4.2x的企业级用户授权认证中心系统(SSO+AM+SM),多租户SAAS应用...
- mybatis insert获取主键
- crontab快速上手
- Windows服务编写综述
- Linux 命令 —— iostat I/O 和 CPU 监视工具
- 让使用SQLite的.NET应用自适应32位/64位系统
- 《TCP/IP详解》学习笔记(七):广播和多播、IGMP协议
- 算法第四版C++算法实现全集
- 阿蛮点歌 未能成功访问服务器,阿蛮歌霸KTV点歌软件的4种添加歌曲的方法
- 计算机辅助设计三是什么,计算机辅助设计提纲部分答案(三)
- Python-URL编码和URL解码方法
- 基于SpringBoot开源框架的MES生产制造执行系统源码
- 乱谈那些个著名的科技互联网公司和产品名字
- 笔记(五)Home Assistant Lovelace UI基本用法
- markdown 删除线
- HDFS 透明加密使用、Keystore和Hadoop KMS、加密区域、透明加密关键概念和架构、KMS配置
- 3d max材质贴图
- Arduino与按钮,火警传感器,无源红外(PIR)传感器和酒精传感器
- 15.2,opencv绘制人脸识别框
- 蓝鲸作业平台:搞定与脚本相关的一切
热门文章
- ultraedit中换行键的替换
- 在浏览器地址栏按回车、F5、Ctrl+F5刷新网页的区别--转
- 元宇宙iwemeta: 元宇宙与数字经济
- Serverless应用场景
- The Wide and Deep Learning Model(译文+Tensorlfow源码解析) 原创 2017年11月03日 22:14:47 标签: 深度学习 / 谷歌 / tensorf
- 智能理财在国内国外的发展现状
- 基于Python的卷积神经网络和特征提取
- 编程开发中最浪费时间和资源的7个错误
- Spring Cache抽象-基于XML的配置声明(基于EhCache的配置)
- 【算法的时间复杂度和空间复杂度】-算法02