[C++-sig] boost.python error

Stefan Seefeld seefeld at sympatico.ca
Sun Nov 6 17:12:10 CET 2005


Ralf W. Grosse-Kunstleve wrote:

> Thanks for the clarification; I agree.
> I noticed that the Linux man page for dlopen mentions LD_LIBRARY_PATH right at
> the beginning. Therefore I was thinking the dynamic loader uses dlopen
> eventually, just like Python does. Or is there another mechanism?

dlopen uses LD_LIBRARY_PATH only if the path doesn't contain '/', which is
not the case for python imports (i.e. python's import function makes sure
the path either starts with '/' or './').

As for ld.so using dlopen, I was under the impression that dlopen is merely
a means for users (i.e. developers) to access the dynamic loader, not the
other way around.
I'm not familiar enough with the details concerning symbol resolution and
initialization, which may be different for both cases.

Regards,
		Stefan



More information about the Cplusplus-sig mailing list