锄头摆脱这个错误---致命错误C1083:无法打开包含文件:'iostream.h':没有这样的文件或目录 [英] hoe to get rid of this error --- fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

查看:117
本文介绍了锄头摆脱这个错误---致命错误C1083:无法打开包含文件:'iostream.h':没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将旧代码从y服务器编译到新服务器,并且服务代码一直面临着这个问题。

我已经安装了visual studio 2008和visual studio 2005来编译这些代码代码。



在调试模式下编译代码并发布我面临此错误



致命错误C1083:无法打开包含文件:'iostream.h':没有这样的文件或目录







我尝试将其更改为< iostream>然后显示以下错误

1>。\ WFTeams.cpp(97):错误C2065:'cout':未声明的标识符

1>。\ WFTeams。 cpp(97):错误C2065:'flush':未声明的标识符

1>。\ WFTeams.cpp(397):警告C4996:'strcat'被声明已弃用

1> c:\Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ include \string.h(78):参见'strcat'的声明

1>消息:'此函数或变量可能不安全。请考虑使用strcat_s。要禁用弃用,请使用_CRT_SECURE_NO_DEPRECATE。有关详细信息,请参阅在线帮助。'

1>。\ WFTeams.cpp(398):警告C4996:'strcat'被声明已弃用

1> c:\Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ include \string.h(78):参见'strcat'的声明

1>消息:'此函数或变量可能不安全。请考虑使用strcat_s。要禁用弃用,请使用_CRT_SECURE_NO_DEPRECATE。有关详细信息,请参阅在线帮助。'

1>构建日志保存在file:// d:\devcodes\WFTeams\Release\BuildLog.htm

1> WFTeams - 2个错误,3个警告

==========构建:0成功,1个失败,0个最新, 0跳过==========



致命错误C1083:无法打开包含文件:'iostream.h':没有这样的文件或目录

解决方案

将其更改为

 #include< iostream> 



您可能需要使用命名空间std;



以及代码


I am trying to compile the old code from y server to deply into the new server and ever service code is facing this problem .
I have installed visual studio 2008 and visual studio 2005 to compile these codes .

while compileing the code in debug mode and release i am facing this error

fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory



I tried to change it as <iostream> then the following errors are displyed
1>.\WFTeams.cpp(97) : error C2065: 'cout' : undeclared identifier
1>.\WFTeams.cpp(97) : error C2065: 'flush' : undeclared identifier
1>.\WFTeams.cpp(397) : warning C4996: 'strcat' was declared deprecated
1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat'
1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>.\WFTeams.cpp(398) : warning C4996: 'strcat' was declared deprecated
1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat'
1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>Build log was saved at "file://d:\devcodes\WFTeams\Release\BuildLog.htm"
1>WFTeams - 2 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

解决方案

Change it to

#include <iostream>


You may need

using namespace std;


as well depending on code


这篇关于锄头摆脱这个错误---致命错误C1083:无法打开包含文件:'iostream.h':没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆