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

2009-02-02 Thread Ralf W. Grosse-Kunstleve
> 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. Python needs to execute the init function in the first module. I.e. you have to have an import from Python. You could do the Python impo

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

2009-02-02 Thread Hugo Lima
On Fri, Jan 30, 2009 at 11:13 PM, Ralf W. Grosse-Kunstleve 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 mod

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

2009-01-30 Thread Ralf W. Grosse-Kunstleve
> 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. (

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

2009-01-30 Thread Renato Araujo
Hi guys, Now I'm trying to reduce my python module. To cut the size I've reduced the number of times that I have to expose a function. I had some success while working in the same module, but when dealing with more than one things get complicated. To do this I created a "workaround", described