On Tue, Feb 17, 2009 at 10:00 PM, Maik Beckmann
<bec...@go...> wrote:
> 2009/2/17 Roman Yakovenko <rom...@gm...>:
>>
>> Okey, my tester reproduced the problem on Linux. I am going to investigate it.
>>
>
> I can confirm that on WinXP using
> - python 2.5.4
> - tdm-mingw 4.3.3
> - gccxml cvs
> - pygccxml/pyplusplus svn
> - boost svn
> I get the warning but it actually works.
>
> A wild guess: May at be there is exactly one to_python registry for
> indexing_suite_v1 inside the boost.python dll/so and for
> indexing_suite_v2 each module contains it's own? Maybe this causes
> the problem, because..
> (Watch out, non expert comment on dll/so:) AFAIK each .dll has its own
> address space, while a .so belongs to the one of executable it's been
> linked to.
Cant comment on those - I don't know the thing so deep.
> Just a wild guess..
Add the following lines before you import your modules
import dl
import sys
sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
and you are going to be fine.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|