std.plugin ?
Martin Nowak
code at dawg.eu
Tue Oct 1 18:39:25 PDT 2013
On 10/01/2013 01:36 PM, FreeSlave wrote:
> I just checked it on Linux. ClassInfo.find can't find the class from
> shared library. That's what I did:
This will work on master but we still lack support for looking up
classes within a specific library, after all you can have two different
implementations with the same name in two different libraries (plugins).
There is another problem with your example, and it's somewhat nasty.
You need to put the base class in a separate library and link both the
classimpl and the executable against it. The way you did it now there is
a cyclic dependency between your executable and the shared library.
In fact the shared library can only be loaded if you build your
executable with -export-dynamic.
More information about the Digitalmars-d
mailing list