VS.NET 2003: Where is class ios_base defined?!

  • Thread starter Thread starter Boris
  • Start date Start date
B

Boris

After including sstream the compiler reports hundreds of errors. They are
all caused by a missing ios_base definition. When I search for ios_base in
the installation directory of VS.NET 2003 I find only seven files with the
..cpp ending. So where is ios_base defined?!

Boris
 
Boris said:
After including sstream the compiler reports hundreds of errors.

This program compiles for me with no problems:

#include <sstream>

int main()
{
std::stringstream s;
s << 1;
return 0;
}

What errors do you get?
They
are all caused by a missing ios_base definition. When I search for
ios_base in the installation directory of VS.NET 2003 I find only
seven files with the .cpp ending. So where is ios_base defined?!

In <xiosbase>
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
 
After including sstream the compiler reports hundreds of errors. They are
all caused by a missing ios_base definition. When I search for ios_base in
the installation directory of VS.NET 2003 I find only seven files with the
.cpp ending. So where is ios_base defined?!

In <xiosbase>. Are you looking for ios_base or std::ios_base?

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com
 
Igor Tandetnik said:
This program compiles for me with no problems:

#include <sstream>

int main()
{
std::stringstream s;
s << 1;
return 0;
}

What errors do you get?

I haven't had any problems with sstream before. That's why I wondered where
the hundreds of compile time errors came from. Meanwhile I could solve the
problem by rearranging the order of included project header files. I don't
know what's causing the compile time errors in the other header files and
don't have time in the moment to fix other developers' code but for now it
works.

Boris
 
Back
Top