[gmpi] Re: Linux C++ question

> We can say both.

Hi Paul,
Sorry, I'm not clear..

Are you saying GMPI does not support static objects?, or does?

If we are fully supporting C++, are we able to use static objects in the SDK? (they can be useful, specifically for singletons).

Best Regards,
Jeff

Paul Davis wrote:
This is a bug, and has been fixed by the creation of __cxa_atexit()
which runs at dll unload time.

should ..we  allow the plugin
base class to run on older GNU installations (those that pre-date
__cxa_atexit()).

No, we should not.

However, i think we could recommend the "no static objects, use
new/delete in constructor/destructor methods" approach.


I'd also be fine saying that a GMPI platform must support the ability to
load and unload dlls with static objects.  This may require compiler
flags for people building plugins.  (and it means my RH8 era Cobalt is out
of the game as a GMPI platform)


We can say both.

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




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