[gmpi] Re: Linux C++ question

>In my experience, on the Mac OS X gcc platform at least, everything 
>works correctly for statics at file-scope - they are, correctly, 
>destroyed from the dynamic-library's unload handler. Only function-scope 
>and block-scope statics are affected. Anyone know if things are the same 
>on Linux?
>
>Also, seeing as how this problem doesn't happen on CodeWarrior or MSVC++ 
>DLLs - is it in fact a bug in GCC, or is it intended design?

its an issue with integration between the compiler and the runtime
library/system. if you use a compiler that uses the __cxa_atexit()
"standard" but the runtime library (C and/or C++) does not, then there
are problems. 

this was antipicated when the __cxa_atexit() model was adopted by the
C++ standards crew. as a result, if you have an old version of (say)
glibc (the GNU C library) and a new version of gcc, things are out of sync.

--p

----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: