Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!noao!arizona!sunquest!whm
From: whm@sunquest.UUCP (Bill Mitchell)
Newsgroups: comp.lang.c++
Subject: hello.cc and g++
Message-ID: <142@sunquest.UUCP>
Date: 16 Jul 88 00:55:02 GMT
Organization: Sunquest Information Systems, Tucson
Lines: 30

I have to think that I must have done something wrong when I installed g++
and libg++, but this program:

#include 
main()
{
	cout << "hello world\n";
}

produces no output on my system (the  after a.out is followed by a shell
prompt).  If change it to:

#include 
main()
{
	cout << "hello world\n";
	cout << 1;
}

it works as expected.  This with g++.1.22.1 (built from gcc.1.22) and
libg++.1.22.0 on SunOS 3.5 on a 3/280.  Is this a known problem or have I
likely fouled something up (like what?) or what?

Other more complicated C++ programs work without any problem.

				Longing for just "hello world",
				Bill Mitchell
				Sunquest Information Systems, Tucson, AZ
				sunquest!whm@arizona.edu
				uunet!sunquest!whm
				{allegra,cmcl2,noao}!arizona!sunquest!whm