On Tue, 12 Feb 2002, Paul Davis wrote: >> Is it possible to use C++ to write LADSPA plugins? Especially since >> the host might only have a C runtime? > in general, no its not possible. the (implicit) rule is that the host > will only load the shared object containing the plugin(s), so if they > require any other symbols to be linked, they will not work. C++ > plugins that use any STL features, RTTI or other C++ runtime library > stuff will simply fail to load in non-C++ hosts.
Actually if linked properly, dlopen() will open plugins written in C++ just fine. >From dlopen() man page: "External references in the library are resolved using the libraries in that library's dependency list and any other libraries previously opened with the RTLD_GLOBAL flag." So no need to limit the set of C++ features. -- http://www.eca.cx Audio software for Linux!
