Hi again,<br>
<br>
I searched google and discovered that the problem is real. Cross-module
inheritance and some other things do not work with boost.python (I don't know why).<br>
<br>
Some old posts show it:<br>
<a href="http://lists.boost.org/Archives/boost/2001/07/14520.php">http://lists.boost.org/Archives/boost/2001/07/14520.php</a><br>
<a href="http://lists.boost.org/Archives/boost/2001/07/14491.php">http://lists.boost.org/Archives/boost/2001/07/14491.php</a><br>
<br>
And recent posts show that some guys resolved the problem (partially):<br>
<a href="http://mail.python.org/pipermail/c++-sig/2005-April/008829.html">http://mail.python.org/pipermail/c++-sig/2005-April/008829.html</a><br>
<a href="http://mail.python.org/pipermail/c++-sig/2005-April/008835.html">http://mail.python.org/pipermail/c++-sig/2005-April/008835.html</a><br>
<br>
Doing:<br>
<pre>import sys, dl<br>sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)</pre>
<br>
But, I am afraid this is not a portable solution. <br>
<br>
1 - Could anyone tell me if, at least, this solution is portable among gcc compilation, even on Windows?<br>
2 - Does anyone suggest me to use this trick now, or should I stay with
the "single-module", and wait for this issue to be solved (is it
possible, given boost.python current state?)<br>
3 - Is there any other workaround? It looks like SWIG can do it (am I right?)<br>
4 - Should I give up everything? ( hope not ;) <br>
<br>
Thanks,<br>
<br>
[Eric Jardim]