Where is 'ios'/'ios_base'?
Steve Frampton
frampton@interq.or.jp
Sun Apr 1 00:00:00 GMT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 13 Feb 2001, Craig Rodrigues wrote:
>
> Steve Frampton wrote:
> > I'm using g++ with libstdc++ 2.96-69 (courtesy of Red Hat), and I was just
> > wondering if the "ios" header file is missing?
> >
> > I'm using a stringstream with which I'd like to throw an exception if the
> > failbit/badbit is set. I have:
> >
> > #include <iostream>
> > #include <sstream>
> > using namespace std;
> >
> > stringstream ss;
> > ss.exceptions(ios_base::badbit | ios_base::failbit);
> >
> > But on compilation I get:
> >
> > demo.cpp:25: `ios_base' undeclared (first use this function)
>
> This error does not occur with the version of gcc in CVS.
> You may wish to upgrade your compiler (2.96-74 is the latest from Redhat).
Okay, I've upgraded to libstdc++-2.96-74, gcc-2.96-74, cpp-2.96-74, and
gcc-c++-2.96-74 all from Rawhide. The error remains. I'll follow-up to
the redhat-list and see what I can find out.
> This will list the libraries and header files that came with your
> Redhat distribution of the Standard C++ library. It looks
> like the Redhat distribution does not come with <ios>, but
> it does come with <iosfwd>. You can try that.
Yep, but iosfwd doesn't resolve my compilation problem. :-(
> For general C++ questions, it is best to post them to the newsgroup
> comp.lang.c++.moderated.
Thanks, subscribing now.
- --------------< LINUX: The choice of a GNU generation. >--------------
Steve Frampton <frampton@interq.or.jp> interQ (Japan), Inc.
Systems Administrator/Software Developer http://www.interq.or.jp/
GNU Privacy Guard ID: D055EBC5 (see http://www.gnupg.org for details)
GNU-PG Fingerprint: EEFB F03D 29B6 07E8 AF73 EF6A 9A72 F1F5 D055 EBC5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (SunOS)
Comment: For info see http://www.gnupg.org
iD8DBQE6ihLvmnLx9dBV68URAk6SAJ9rKncgerFaqeuvHCQUUM+O3JSNCACfQKTl
qYJMeJRsihSY0MC0N24oGXY=
=0xXj
-----END PGP SIGNATURE-----
More information about the Libstdc++
mailing list