Sunday, July 26, 2009

Can any one help fix a problem with Microsoft Visual C++ ?

When I try to build a project, I get the following error:





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


The file is in the same directory as the source code.





Thanx

Can any one help fix a problem with Microsoft Visual C++ ?
Check the include path in your environment, and see if it's changed in your make file, or try explicit pathing in your source code. Sometimes the compiler will not check your local directory if you have a switch set somewhere that says not to.





good luck
Reply:iostream.h has been removed from the include directory (I think this has


happened with VS2002).


Use the standard header intead:





#include %26lt;iostream%26gt;


using namespace std;
Reply:Try using -%26gt; #include"iostream.h" instead of #include%26lt;iostream.h%26gt;
Reply:I havent programmed in Visual C++, but I have in regular C++, Try this line for In Out Streams:





#include %26lt;iostream%26gt;;


using namespace std;





That should help if you are using "cout" and "cin"
Reply:try removing the .h from the include directive, good luck.


No comments:

Post a Comment