old iostream in vs2003

  • Thread starter Thread starter paulm
  • Start date Start date
P

paulm

there is no iostream.h in vs.net 2003 includes
using iostream.h from vc6 header fails to link (limcimtd
not found)
So how do I compile code with old iostream header in it
 
The recommended option is to adapt the code to work with the standard
iostream implementation. In general the amount of code changes required are
relatively trivial. You could also try to use a third party implementation
that is compatible with the old iostreams.

Ronald Laeremans
Visual C++ team
 
You can use the new one by doing---

use these lines

#include <iostream>
using namespace std;

instead of
 
Sushil said:
You can use the new one by doing---

use these lines

#include <iostream>
using namespace std;

instead of
#include <iostream.h>

In many cases, but not all, that will be sufficient.

The most common questions about porting have to do with open mode and the
various flags in std::iso_base (formerly ios). There is not a one to one
correspondence between the two sets of flags.

When in doubt, grab a copy of "Standard C++ IOStreams and Locales" by Klaus
Kreft and Angelika Langer.

-cd
 
Back
Top