Re: GCC include files conundrum.

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Tue, 16 Mar 2004 06:19:51 +0800 (CST)
In message: <16468.65270.123954.862565_at_canoe.dclg.ca>
            David Gilbert <dgilbert_at_dclg.ca> writes:
: The C++ FAQ referred to by iostream (not iostream.h) seems to imply
: that you should use iostream and sstream (no .h)... but including
: those files imposes a very different standard that this port is not
: ready to accept.  It appears that (among other things that I havn't
: found yet) all 'istream' must be written 'std::istream' ... etc.
: 
: So what's the solution?

Fix the code.  Use the new, non .h variation.  And put 'using
namespace std;' at the top of your files *OR* fix all the uses to have
std:: in front of them.  That's C++, get used to it. :-)

C++ used to define things differently, but as compilers become more
standards conforming, you'll see more and more things like this.

The old .h files are obsoleted.

Warner
Received on Mon Mar 15 2004 - 13:19:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:47 UTC