[C++-sig] boost.python error

Ricardo Kirkner ricardokirkner at gmail.com
Sun Nov 6 03:44:09 CET 2005


Hi:

I tried to compile my module several ways. I managed to get pass the
undefined symbol error, by compiling the module directly (not using
bjam). However, now I am getting the following error:

ImportError: dynamic module does not define init function (initopal)

I believe that the problem with bjam might be a Jamfile/Jamrules
configuration error. (I could correctly compile the hello world
example)

Please, if anyone knows a little more about this, give me a hand :-)

Regards,

Ricardo Kirkner

On 11/5/05, Stefan Seefeld <seefeld at sympatico.ca> wrote:
> Ralf W. Grosse-Kunstleve wrote:
>
> > Note that you will always have to worry about LD_LIBRARY_PATH; this is how you
> > tell dlopen (used by Python) where to find your custom shared libraries.
>
> just a little nit-picking:
>
> The library being searched for here (libboost_python.so) isn't dlopened, only
> the depending python module is. Python has its own way to figure out from
> where to load its modules, and that doesn't involve LD_LIBRARY_PATH.
> However, if those modules depend on other DSOs, the dynamic loader (ld.so
> on my system) kicks in, and *then* you may need LD_LIBRARY_PATH to add
> non-default places to look in.
>
> Regards,
>                 Stefan
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>



More information about the Cplusplus-sig mailing list