在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"
来源:互联网 发布:js杀破狼mp3下载地址 编辑:程序博客网 时间:2024/04/30 18:39
上次在线测试就遇到了这个问题,耽误了好长时间。现在又遇到了。原来是一开始建工程时选择了“使用预编译头”,而后来想改为空程序,系统自动查找include "StdAfx.h“没有找到,所以报错。
(因为工程中的每个cpp文件属性默认都是使用预编译头(/YU)的,但是添加的第三方文件并没有 #include "stdafx.h" 预编译指示头,所以编译器在此cpp文件中一直到末尾都没有找到它)
解决方式:
1) 在解决方案资源管理器中,右击相应的.cpp文件,点击“属性”
2) 在左侧配置属性中,点开“C/C++”,单击“预编译头”
3) 更改右侧第一行的“创建/使用预编译头”,把选项从“使用预编译头(/Yu)”改成“不使用预编译头”
0 0
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"
- 关于在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"”?
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h""
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"”?
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"”?
- 错误:在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加"#include"stdafx.h""
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"”?
- VC中的预编译:fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"”?
- vc编程中出现 fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"”?
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"?
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h
- vs2010:fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"”?
- 错误描述:fatal error C1010:在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include"stdafx.h"”?
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h
- 青蛙跳台阶问题
- RingtonePicker
- 使用ESCAPE定义转义符
- 高仿微信对话列表滑动删除效果
- SQLServer2008的安装
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"
- [android ui]高手速成android开源项目【View篇】
- 数组名作为函数参数
- 交流会新流程(试行)
- 利用firebug的console.profile分析js代码性能
- 云计算基础知识1
- 内连接(INNER JOIN)
- rpm的制作 spec文件写法
- IOS开发屏幕适配问题(一)