GCC include files conundrum.

Mike Silbersack silby at silby.com
Sun Mar 14 17:10:23 PST 2004


On Sun, 14 Mar 2004, David Gilbert wrote:

> 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?
>
> Dave.

#include <blahblahblah>
using namespace STD;

or something similar should restore the behavior the application is
expecting.

(Apparently including namespace std is evil, and this is why the FAQs
aren't helpful in telling you this.)

Mike "Silby" Silbersack


More information about the freebsd-current mailing list