Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 15:48:00 -0800
From:      Cy Schubert - CITS Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        freebsd-current@freebsd.org
Subject:   C++ Issue On -CURRENT
Message-ID:  <200211302348.gAUNm09V012697@cwsys.cwsent.com>

next in thread | raw e-mail | index | archive | help
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 <iostream>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211302348.gAUNm09V012697>