If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Cannot open include file: 'iostream.h

Hi,

I am attempting to build Borland C++ 4.5 code on the VC++6.0 environment.

For a set of files I attempt to compile after creating a workspace, I get the following set of errors-

Code:

fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
fatal error C1083: Cannot open include file: 'string.h': No such file or directory
fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
fatal error C1083: Cannot open include file: 'string.h': No such file or directory
fatal error C1083: Cannot open include file: 'fstream.h': No such file or directory
fatal error C1083:Cannot open include file: 'process.h': No such file or directory
fatal error C1083: Cannot open include file: 'time.h': No such file or directory

I have looked through the internet and as per the general solution to these sort of issues have done the following-

Re: Cannot open include file: 'iostream.h

dont forget to add using namespace std;

It takes seconds for rating…that actually compensates the minutes taken for giving answersThe biggest guru-mantra is: Never share your secrets with anybody. It will destroy you. Regards, Be generous->Rate people
Jayender!!

Re: Cannot open include file: 'iostream.h

VC++ uses Environment variables like Include , Lib. These variables represent the paths for respective files.
In your case these variables must have been modified/corrupted/removed, causing the problem reported.
You can confirm this by looking at Environment Variables in System properties, Right click on "My Computer"->Advanced Tab ->Environment Variables button.

See if include, lib, MSDevDir etc. are there and have proper values.

You will have to reinstall(completly uninstall and install again) VC++ in order to get them back. You can manually assign values but reinstall is easy.