From owner-freebsd-current Sat Nov 30 16:49: 4 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 D0D9F37B401 for ; Sat, 30 Nov 2002 16:49:02 -0800 (PST) Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C16043EAF for ; Sat, 30 Nov 2002 16:48:51 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.186.92]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021201004840.EIPU2670.tomts5-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sat, 30 Nov 2002 19:48:40 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with SMTP id gB10mbS30100; Sat, 30 Nov 2002 19:48:37 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <002501c298d3$63c3c150$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Cy Schubert - CITS Open Systems Group" , "Garrett Rooney" Cc: "Cy Schubert - CITS Open Systems Group" , References: <200212010002.gB10299V012823@cwsys.cwsent.com> Subject: Re: C++ Issue On -CURRENT Date: Sat, 30 Nov 2002 19:48:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 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. You will also get these sorts of errors if you've got stale g++ headers in /usr/include/g++. Make sure that you clean out this directory before doing an installworld. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message