C++ Embedding Problem - Import Error

Jim jbublitzNO at SPAMnwinternet.com
Sun Mar 24 04:23:01 EST 2002


Gustavo Niemeyer wrote:
> [...]

>>Just to be clear, I'm linking libpython into another .so
>>lib that's dlopened by an app. There is no possibility of
>>linking Python directly with the app (or I wouldn't be
>>writing a plugin in the first place).

> You must open your plugin with RTLD_GLOBAL, otherwise the
> symbols inherited from libpython.a won't be available for the
> dynamic loaded modules.

I was afraid that might end up being the case. Since I
don't have control of the code that loads the library,
I'll probably have to load that part in my code.

Thanks.

Jim




More information about the Python-list mailing list