From owner-freebsd-chat@FreeBSD.ORG Wed Apr 28 19:24:15 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 0492F16A4CE for ; Wed, 28 Apr 2004 19:24:15 -0700 (PDT) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 7DCB243D3F for ; Wed, 28 Apr 2004 19:24:13 -0700 (PDT) (envelope-from doublef@tele-kom.ru) Received: (qmail 5569 invoked by uid 555); 29 Apr 2004 06:24:11 +0400 Received: from shark (213.80.149.171) by t-k.ru with TeleMail/2 id 1083205450-5541 for cpressey@catseye.mine.nu; Thu, 29 Apr 06:24:10 2004 +0400 (MSD) Received: by shark (Postfix, from userid 1000) id A4BCC25D; Thu, 29 Apr 2004 06:24:04 +0400 (MSD) Date: Thu, 29 Apr 2004 06:24:04 +0400 From: Sergey Zaharchenko To: Jonathan Lemon Message-ID: <20040429022403.GA351@Shark.localdomain> References: <20040425215837.3f4708fe.cpressey@catseye.mine.nu> <20040426094335.GA7578@online.fr> <20040426115842.GA4144@Shark.localdomain> <20040427160737.GA1325@Shark.localdomain> <20040428023920.GA382@Shark.localdomain> <20040428163104.GA10537@Shark.localdomain> <20040428174229.GS90558@cave.trolltruffles.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <20040428174229.GS90558@cave.trolltruffles.com> User-Agent: Mutt/1.4.2.1i cc: Rahul Siddharthan cc: Sergey Zaharchenko cc: Chris Pressey cc: chat@freebsd.org cc: Dag-Erling Sm??rgrav 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: Thu, 29 Apr 2004 02:24:15 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 28, 2004 at 12:42:29PM -0500, Jonathan Lemon probably wrote: > I knew there was a good reason why I redirected -chat to /dev/null, > and I'm going to restore that procmail rule in about 30 seconds. >=20 > However, before I do that, I'll note this entire conversation is=20 > utterly stupid. That "feature" of C++ initializers being called=20 > on startup is simply from lib/csu/i386/c++rt0.c (or equivalent); > if you really wanted the same feature in C, you'd write your own > crt0.c and then call gcc with "-nostartfiles" >=20 > If you don't want "main()" as your entry point, use "ld -e myfunc" instea= d. Sure, that's really good (though you could just write your own _init() in your source and call gcc with -nostdlib) --- but I wanted it be portable (that's what the discussion is actually above). So you're cheating:). --=20 DoubleF The law will never make men free; it is men who have got to make the law free. -- Henry David Thoreau --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAkGdDwo7hT/9lVdwRAmqxAJ9ZQ+XKw49RKxkmJQatYGHK1ESPUgCeMHEC ZxUo3q4y6veiieCj4K25Du0= =rols -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--