From owner-freebsd-current Sat Nov 30 16: 2:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A90C737B401 for ; Sat, 30 Nov 2002 16:02:10 -0800 (PST) Received: from spqr.osg.gov.bc.ca (spqr.osg.gov.bc.ca [142.32.102.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F8E43EB2 for ; Sat, 30 Nov 2002 16:02:10 -0800 (PST) (envelope-from Cy.Schubert@osg.gov.bc.ca) Received: from passer.osg.gov.bc.ca (passer.osg.gov.bc.ca [142.32.110.29]) by spqr.osg.gov.bc.ca (Postfix) with ESMTP id 0C4879F148; Sat, 30 Nov 2002 16:02:10 -0800 (PST) Received: from cwsys.cwsent.com (cwsys2 [10.1.2.1]) by passer.osg.gov.bc.ca (8.12.6/8.12.3) with ESMTP id gB1029Gu080598; Sat, 30 Nov 2002 16:02:09 -0800 (PST) (envelope-from cy@cwsent.com) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.12.6/8.12.3) with ESMTP id gB10299V012823; Sat, 30 Nov 2002 16:02:09 -0800 (PST) (envelope-from cy@cwsys.cwsent.com) Message-Id: <200212010002.gB10299V012823@cwsys.cwsent.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Reply-To: Cy Schubert - CITS Open Systems Group From: Cy Schubert - CITS Open Systems Group X-os: FreeBSD X-Sender: cy@cwsent.com To: Garrett Rooney Cc: Cy Schubert - CITS Open Systems Group , freebsd-current@freebsd.org Subject: Re: C++ Issue On -CURRENT In-Reply-To: Message from Garrett Rooney of "Sat, 30 Nov 2002 18:50:22 EST." <7DAE546B-04BE-11D7-9FE8-00039364885A@electricjellyfish.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 30 Nov 2002 16:02:09 -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <7DAE546B-04BE-11D7-9FE8-00039364885A@electricjellyfish.net> , Garret t Rooney writes: > > The following program builds and runs under 4.7-STABLE: > > > > #include > > > > int main() > > { > > cout<<"Hello World\n"; > > } > > > > ... but under 5.0-CURRENT it gives me the following errors: > > > > cwtest$ g++ -o foo foo.cc > > foo.cc: In function `int main()': > > foo.cc:5: `cout' undeclared (first use this function) > > foo.cc:5: (Each undeclared identifier is reported only once for each > > function > > it appears in.) > > does the problem still occur if you add in 'using namespace std'? Thanks. That also fixed it. -- Cheers, Phone: 250-387-8437 Cy Schubert Fax: 250-387-5231 Team Leader, Sun/Alpha Team Email: Cy.Schubert@osg.gov.bc.ca Open Systems Group, CITS Ministry of Management Services Province of BC FreeBSD UNIX: cy@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message