Date: Thu, 29 Apr 2004 06:24:04 +0400 From: Sergey Zaharchenko <doublef@tele-kom.ru> To: Jonathan Lemon <jlemon@flugsvamp.com> Cc: Dag-Erling Sm??rgrav <des@des.no> Subject: Re: Beginning C++ in FreeBSD Message-ID: <20040429022403.GA351@Shark.localdomain> In-Reply-To: <20040428174229.GS90558@cave.trolltruffles.com> References: <20040425215837.3f4708fe.cpressey@catseye.mine.nu> <20040426094335.GA7578@online.fr> <20040426115842.GA4144@Shark.localdomain> <xzphdv5wq2q.fsf@dwp.des.no> <20040427160737.GA1325@Shark.localdomain> <xzpr7u918jv.fsf@dwp.des.no> <20040428023920.GA382@Shark.localdomain> <xzpfzao18gd.fsf@dwp.des.no> <20040428163104.GA10537@Shark.localdomain> <20040428174229.GS90558@cave.trolltruffles.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040429022403.GA351>