Subject: Re: [linux-audio-dev] LADSPA Writing Tutorial
From: Kai Vehmanen (kai.vehmanen_AT_wakkanet.fi)
Date: Tue Feb 12 2002 - 22:40:49 EET
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!
This archive was generated by hypermail 2b28 : Tue Feb 12 2002 - 22:31:28 EET