On Wed, 24 Oct 2001, Daniel Jacobowitz wrote: > <sigh> If you're order-sensitive, you've got a problem.
Lots of real C++ code is order-sensitive. This is a serious problem and there are a couple of ugly solutions to it. The best solution would be to teach the linker about it. The solution we are talking about here is just a rather unconventional but beautiful one. Well, it was until yesterday, I guess... > I suggest > fiddling with link order and normal constructors; it should behave > roughly as expected - objects first on link line link first. > > Other than that there's not much you can do. Rather than that or changing the module ordering macros and writing autoconf scripts to see if the global dtors are making use of cxa-atexit I guess I'll just switch on -fno-use-cxa-atexit in CLN whenever GCC-3.x is used. Hope this'll work for a couple of years... Thanx and cheers -richy. -- .''`. Richard B. Kreckel : :' : <[EMAIL PROTECTED]> `. `' <[EMAIL PROTECTED]> `- <http://www.ginac.de/~kreckel/>