Re: Beginning C++ in FreeBSD

看板FB_chat作者時間22年前 (2004/04/29 18:26), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串37/43 (看更多)
--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--
文章代碼(AID): #10aDX800 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #10aDX800 (FB_chat)