[C++-sig] virtual functions and bind size reduction

Hugo Lima hugo.lima at openbossa.org
Mon Feb 2 13:21:09 CET 2009


On Fri, Jan 30, 2009 at 11:13 PM, Ralf W. Grosse-Kunstleve
<rwgk at yahoo.com> wrote:
>> This apparently works fine when running in same module but if I create a class
>
>> derived from Base in another module (another library), this stop
>> working because the dynamic_cast fails.
>
> Simple idea: is the other module imported before the dynamic_cast is executed?
> That's probably important.
> (Not sure that's it; I hardly ever work with virtual functions.)

The second module is linked against the first one, so I think that the
linker should load all shared libraries before any python::boost code
get executed.

> Ralf
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>


More information about the Cplusplus-sig mailing list