From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1500 invoked by alias); 8 Feb 2002 22:14:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1327 invoked from network); 8 Feb 2002 22:14:16 -0000 Received: from unknown (HELO satyr.sylvan.com) (207.215.30.18) by sources.redhat.com with SMTP; 8 Feb 2002 22:14:16 -0000 Received: (qmail 9641 invoked by uid 500); 8 Feb 2002 22:14:04 -0000 Date: Fri, 08 Feb 2002 14:14:00 -0000 From: "Kayvan A. Sylvan" To: Kirk Cc: gcc-help@gcc.gnu.org Subject: Re: how can cout be undeclared? Message-ID: <20020208221404.GA9530@satyr.sylvan.com> References: <02020813570506.01192@truffula.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <02020813570506.01192@truffula.localdomain> User-Agent: Mutt/1.3.25i X-PGP-Key: http://www.sylvan.com/~kayvan/kayvankey.asc X-SW-Source: 2002-02/txt/msg00095.txt.bz2 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1199 On Fri, Feb 08, 2002 at 01:57:05PM -0600, Kirk wrote: > I'm trying to a program ported from linux (redhat7.2 running gcc-2.96RH) = to=20 > freebsd. I have installed gcc-3.0. Most of the compile time errors that I= was=20 > getting while using gcc-2.95 on freebsd have disappeared now that I'm=20 > compiling with gcc-30. However, there is one that is perplexing me. It is: >=20 > tveg.cpp: In member function `void TVeg::dayOut(TDay*)': > tveg.cpp:428: `cout' undeclared (first use this function) > tveg.cpp:428: (Each undeclared identifier is reported only once for each > function it appears in.)....=20 >=20 > the whole error output is below.=20 >=20 > It is odd that a simple cout (which compiles fine on redhat's 2.96 versio= n)=20 > is choking here. >=20 > Any thoughts? >=20 > Thanks in advance, >=20 > Kirk This is correct behavior. gcc-2.X was not quite standard-conforming. Add a "using std::cout;" statement and all should be well. ---Kayvan --=20 Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/= 89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 232 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8ZE2rGpRc6bZSsTsRAjAkAJ47BZjz8YSfOMP4abkGuhGgdSDN7wCcDqZT kbKj4DwVS+9gxntrNathFp0= =sgPw -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw--