Visual C++ .NET 2003

M

Michelle

I am unable to recompile on Visual C++.NET 2003 because
stream.h and iostream.h are not in the include files.
When I try to use fstream and iostream without the .h it
give me more errors. As I look in the fstream File given
in the include files, there is no ofstream declaration,
only basic_ofstream and explicit_ofstream. What is the
deal with taking out standard libraries such as
fstream.h? Please help.
 
B

Boris

Michelle said:
I am unable to recompile on Visual C++.NET 2003 because
stream.h and iostream.h are not in the include files.
When I try to use fstream and iostream without the .h it
give me more errors. As I look in the fstream File given
in the include files, there is no ofstream declaration,
only basic_ofstream and explicit_ofstream. What is the
deal with taking out standard libraries such as
fstream.h? Please help.

I don't have Visual C++.NET 2003 but here's my guess: The names of the two
header files according to the C++ Standard are stream and iostream - without
".h". stream.h and iostream.h don't belong to the C++ Standard. As you used
these header files before you might have used classes or methods either that
are not part of the C++ Standard.

Boris
 
P

Peter van der Goes

Michelle said:
I am unable to recompile on Visual C++.NET 2003 because
stream.h and iostream.h are not in the include files.
When I try to use fstream and iostream without the .h it
give me more errors. As I look in the fstream File given
in the include files, there is no ofstream declaration,
only basic_ofstream and explicit_ofstream. What is the
deal with taking out standard libraries such as
fstream.h? Please help.

Shot in the dark.
When you switched your #includes to the new headers, did you also add (below
the imports)

using namespace std;

??
If not, that's probably your problem.
FWIW, removing the legacy .h versions is a move to compliance with standard
C++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top