Subject: Re: Maybe this is in some C++ FAQ, but maybe not
To: Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
From: Martin Husemann <martin@duskware.de>
List: tech-toolchain
Date: 11/08/2003 10:10:16
On Sat, Nov 08, 2003 at 09:59:12PM +1300, Lloyd Parkes wrote:
> I'm using c++ from NetBSD-current (so it's GCC 3.3.2), and my "Hello,
> world" program doesn't work with iostream.h. iostream works fine, but
> I'm trying to build someone else's library, and I'm not sure how much
> work would be involved in reworking it.

What are you using to link it? You need g++ for the final link call, since
it adds additional libs.

It works fine for me.

Martin

[/tmp] martin@night-porter > cat hello.cc
#include <iostream.h>
main ()
{
	cout << "Hello, world\n";
}

                
[/tmp] martin@night-porter > g++ hello.cc 
In file included from /usr/include/g++/backward/iostream.h:31,
                 from hello.cc:1:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
[/tmp] martin@night-porter > ./a.out 
Hello, world