[gmpi] Re: Linux C++ question

On Tue, Mar 01, 2005 at 09:38:49PM -0500, Ron Kuper wrote:
> >* For maximum portability, GMPI plugins should not declare static objects
> > (C++).  Some platforms are known to have problems unloading DLLs with
> > static objects.
> 
> Seems way too strict to me.
> 
> Static objects, aka "singletons", are a very common C++ idiom.  My guess 
> would be if the compiler barfed it might be due to a mixture of C-isms such 
> as "atexit" with C++ code.

Again, it's not that the plugin is doing anything wrong - it's the
platform.  It seems that both older Linuxes and Mac OSX (with GNU tools)
do *not* support unloading DLLs with static object.

We can rule out those compilers, I suppose...

----------------------------------------------------------------------
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: