From owner-freebsd-chat@FreeBSD.ORG Tue Apr 27 13:15:58 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A747116A4CE for ; Tue, 27 Apr 2004 13:15:58 -0700 (PDT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB16443D31 for ; Tue, 27 Apr 2004 13:15:57 -0700 (PDT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 4C29C5312; Tue, 27 Apr 2004 22:15:56 +0200 (CEST) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 427185309; Tue, 27 Apr 2004 22:15:49 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id DF4EB33C71; Tue, 27 Apr 2004 22:15:48 +0200 (CEST) To: Sergey Zaharchenko References: <20040425215837.3f4708fe.cpressey@catseye.mine.nu> <20040426094335.GA7578@online.fr> <20040426115842.GA4144@Shark.localdomain> <20040427160737.GA1325@Shark.localdomain> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 27 Apr 2004 22:15:48 +0200 In-Reply-To: <20040427160737.GA1325@Shark.localdomain> (Sergey Zaharchenko's message of "Tue, 27 Apr 2004 20:07:37 +0400") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: Rahul Siddharthan cc: Chris Pressey cc: chat@freebsd.org Subject: Re: Beginning C++ in FreeBSD X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 20:15:58 -0000 Sergey Zaharchenko 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