From owner-freebsd-current Sat Nov 30 15:48: 9 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 693E337B401 for ; Sat, 30 Nov 2002 15:48:07 -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 DE60F43E4A for ; Sat, 30 Nov 2002 15:48:06 -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 933209F13D for ; Sat, 30 Nov 2002 15:48:01 -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 gAUNm1Gu080431 for ; Sat, 30 Nov 2002 15:48:01 -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 gAUNm09V012697 for ; Sat, 30 Nov 2002 15:48:00 -0800 (PST) (envelope-from cy@cwsys.cwsent.com) Message-Id: <200211302348.gAUNm09V012697@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: freebsd-current@freebsd.org Subject: C++ Issue On -CURRENT Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 30 Nov 2002 15:48:00 -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 I've been working on getting the tripwire port to build on -CURRENT. Through this process I've stumbled across an issue. Searching through the mailing lists, I haven't found a solution to this. 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.) cwtest$ I built world on one of my -STABLE machines (it's faster that way), then remove /usr/include/g++ (on the -CURRENT system) and installworld on my -CURRENT system. Yet, the above error occurs. I suspect that someone else here has encountered this and solved this. Would anyone care to point me in the right direction? -- 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