embedded python ...

Gustavo Niemeyer niemeyer at conectiva.com
Mon Mar 25 10:57:35 EST 2002


> ---------------------------------------------------------
> Traceback (most recent call last):
>   File "./blue.py", line 2, in ?
>     import math
> ImportError: /usr/lib/python2.1/lib-dynload/math.so:
> undefined symbol: PyExc_OverflowError
> ---------------------------------------------------------

If you're linking libpython.a into the main executable, use the
-rdynamic flag of gcc, or --export-dynamic flag of ld. If you're linking
the library into a shared object, make sure you're using RTLD_GLOBAL in
the dlopen() call.

This should probably be inserted somewhere in the embedding documentation.

-- 
Gustavo Niemeyer

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




More information about the Python-list mailing list