Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2004 22:15:48 +0200
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        Sergey Zaharchenko <doublef@tele-kom.ru>
Cc:        chat@freebsd.org
Subject:   Re: Beginning C++ in FreeBSD
Message-ID:  <xzpr7u918jv.fsf@dwp.des.no>
In-Reply-To: <20040427160737.GA1325@Shark.localdomain> (Sergey Zaharchenko's message of "Tue, 27 Apr 2004 20:07:37 %2B0400")
References:  <20040425215837.3f4708fe.cpressey@catseye.mine.nu> <20040426094335.GA7578@online.fr> <20040426115842.GA4144@Shark.localdomain> <xzphdv5wq2q.fsf@dwp.des.no> <20040427160737.GA1325@Shark.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
Sergey Zaharchenko <doublef@tele-kom.ru> writes:
> Sorry? I mean, you've got the object file, and can compile a shared
> library which will advertize itself, with the former, whereas the
> latter, as you've pointed out, doesn't compile.

neither does the former, with a proper compiler:

% g++ -o /dev/null -c a.cc
a.cc: In constructor `A::A()':
a.cc:11: error: `cout' undeclared (first use this function)
a.cc:11: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
a.cc:11: error: `endl' undeclared (first use this function)

you're missing "using namespace std;" at the top.

> A quick hint: Turing has nothing to do with all this...

Yes, he does; you just don't understand him.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



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