C++ Embedding Problem - Import Error

Gustavo Niemeyer niemeyer at conectiva.com
Sun Mar 24 01:27:40 EST 2002


[...]
> 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.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]




More information about the Python-list mailing list