无法打开包含文件 stdafx.h
时间:2011-12-07
来源:互联网
朋友发来一个项目,一编译就会出现:fatal error C1083: 无法打开包含文件:“stdafx.h”: No such file or directory
不知道是什么原因?
在此请教各位,被折腾了两天了。百度、谷歌没有找到对应的解决方案。
不知道是什么原因?
在此请教各位,被折腾了两天了。百度、谷歌没有找到对应的解决方案。
作者: SungCen 发布时间: 2011-12-07
这样的东西需要折腾吗?
Cannot open filetype file: 'file': message
To fix by checking the following possible causes
File does not exist.
File, subdirectory, or disk is read-only.
No access permission for file or directory.
Not enough file handles. Close some applications and recompile.
The INCLUDE environment variable is set incorrectly.
An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped.
You did not specify /clr and your program uses CLR constructs.
You attempted to compile a single file in the project without first compiling stdafx.cpp. Before you can compile a single file in the project, you need to compile stdafx.cpp. In the case of the /analyze (Enterprise Code Analysis) compiler option, you will need to use the same /analyze setting for stdafx.cpp that you use for the .cpp file.
The following sample generates C1083:
// C1083.cpp
// compile with: /c
#include "test.h" // C1083 test.h does not exist
#include "stdio.h" // OK
Cannot open filetype file: 'file': message
To fix by checking the following possible causes
File does not exist.
File, subdirectory, or disk is read-only.
No access permission for file or directory.
Not enough file handles. Close some applications and recompile.
The INCLUDE environment variable is set incorrectly.
An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped.
You did not specify /clr and your program uses CLR constructs.
You attempted to compile a single file in the project without first compiling stdafx.cpp. Before you can compile a single file in the project, you need to compile stdafx.cpp. In the case of the /analyze (Enterprise Code Analysis) compiler option, you will need to use the same /analyze setting for stdafx.cpp that you use for the .cpp file.
The following sample generates C1083:
// C1083.cpp
// compile with: /c
#include "test.h" // C1083 test.h does not exist
#include "stdio.h" // OK
作者: cbx_xx 发布时间: 2011-12-08
如果还是打不开,则你用你的软件新建一个工程,然后查看工程设置 包含文件路径...把这些路径复制到你朋友的项目对应的位置
作者: cbx_xx 发布时间: 2011-12-08
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28