.NET下编译C++代码时出现fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory错误的解决方法.
2013-04-22 01:38
1131 查看
在VS.NET 2008新建了一个win 32项目,引用以下头文件
#include "stdafx.h"
#include<iostream.h>
编译出错:fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory
我以为是头文件前后顺序不对,但测试后发现不是这个原因。
后来上网调查说我没有引用命名空间,修改后
#include "stdafx.h"
#include<iostream.h>
using namespace std;
还是出同样的错误,后来发现还需要把#include<iostream.h>改为#include<iostream>。
因此正确的是:
#include "stdafx.h"
#include<iostream>
using namespace std;
#include "stdafx.h"
#include<iostream.h>
编译出错:fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory
我以为是头文件前后顺序不对,但测试后发现不是这个原因。
后来上网调查说我没有引用命名空间,修改后
#include "stdafx.h"
#include<iostream.h>
using namespace std;
还是出同样的错误,后来发现还需要把#include<iostream.h>改为#include<iostream>。
因此正确的是:
#include "stdafx.h"
#include<iostream>
using namespace std;
相关文章推荐
- 引用原因.NET下编译C++代码时出现fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory错误的解决方法.
- .NET下编译C++代码时出现fatal error C1083: 无法打开包括文件:“xuhk_JNIHelloWorld.h”: No such file or directory错误的解决方法。
- 项目文件.NET下编译C++代码时出现fatal error C1083: 无法打开包括文件:“xuhk_JNIHelloWorld.h”: No such file or directory错误的解决方法。
- Win7 64 MTK编译Modis出现fatal error C1083: 无法打开包括文件:“stdarg.h”: No such file or directory 解决方法
- VS2008中编译C工程出现无法打开包括文件:“iostream.h”: No such file or directory
- VS2012与VS2015同时安装用VS2012创建MFC程序时弹出编译错误”fatal error C1083: 无法打开包括文件:“mprapidef.h”: No such file or directory”的解决办法
- 网狐荣耀版系统模块编译出现fatal error c1083:无法打开包含文件“d3d9.h” :no such file or directory
- VS2008中编译C工程出现无法打开包括文件:“iostream.h”: No such file or directory
- 问题解决 错误 C1083 无法打开包括文件: “thirdparty/textDetect/erfilter.hpp”: No such file or directory
- 关于C++ 基本常见问题 无法打开包括文件:“iostream.h”: No such file or directory” [Error] '::main' must return 'int
- fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory
- 在VS2010下编译无法打开包括文件:“GL/glaux.h”: No such file or directory的解决
- 网狐编译错误1:fatal error C1083 无法打开包括文件 “D3Dx9.h” No such file or directory
- 在VS2010下编译无法打开包括文件:“GL/glaux.h”: No such file or directory的解决 .
- fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory
- 错误 C1083 无法打开包括文件: “iostream.h”: No such file or directory
- Cocos2dx-3.2编译错误error C1083: 无法打开包括文件: “extensions/ExtensionMacros.h”: No such file or directory
- 在编译CUDA程序时出现 fatal error C1083: 无法打开包括文件:“cutil.h”: No such file or directory 的问题
- 编译错误 无法打开包括文件:“SDKDDKVer.h”: No such file or directory
- WTL工程:fatal error C1083: 无法打开包括文件:“atlapp.h”: No such file or directory 的解决方法