[xplc-general] Re: strange behavior in xplc_ptr
Cross-platform lightweight components
Status: Alpha
Brought to you by:
pphaneuf
|
From: Pierre P. <pp...@lu...> - 2005-08-23 06:41:19
|
Avery Pennarun wrote: > Hey, my hacks aren't non-portable. Horrid, yes. Hacks, yes. But > it's just some #defines that generate extern references. Nothing > fancy. wvlinkerhack.h in wvstreams. Well... You hacks rely on global constructors working, which doesn't work portably. On enlightened platforms such as Linux/gcc, they do, but on some odd and not-so-odd platforms, they still don't work right in all circumstances (for example, some only work if they are in the main binary, nothing in shared library will work, other will work in shared libraries, but only if they are linked to your binary, not if they are dynamically loaded, etc, etc, etc). This is just so much fun, I can't even begin to tell you! And yes, I'm disappointed, this would have been so much neater... -- Pierre Phaneuf http://www.livejournal.com/users/pphaneuf/ "Disobey. It's the law." |