Click here to Skip to main content
15,885,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

Change it to
#include <iostream>

You may need
using namespace std;

as well depending on code
 
Share this answer
 
v3
Comments
CPallini 23-Jun-14 12:34pm    
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900