Assertion from wxDynamicLibrary call...
Vadim Zeitlin
vadim at wxwidgets.org
Wed Nov 7 11:37:40 PST 2007
On Wed, 7 Nov 2007 07:37:20 -0800 Carl Godkin <cgodkin at gmail.com> wrote:
CG> I know why this is happening: the RTTI table is seeing some wx classes a
CG> second time .
CG>
CG> I even know how to prevent it: If I don't link the plugin with
CG> --no-undefined and leave off the wx libraries, then the plugin loads
CG> fine and works correctly.
It looks that wx is linked in twice if you use --no-undefined and this
creates all sorts of problems (with everything global, including wxRTTI
tables). So the goal is to avoid it but I really have no idea how nor why
does it happen now. I do suppose that your main program uses wx as (the
same) shared library as the plugins do, doesn't it?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list