Embedding Python - time module problem

Richard Townsend richardt at edshk.demon.co.uk
Wed Jun 19 03:43:32 EDT 2002


In article <3D0F99EA.7060904 at SPAMnwinternet.com>, Jim <jbublitzNO at SPAMnw
internet.com> writes
>This sounds similar to the problem I had under Linux -
>sys is builtin, time and math aren't, and the interpreter
>symbols needed aren't available to the time and math
>libs.
>
>If you're using something like 'dlopen' to import the
>interpreter, it needs to happen with the RTLD_GLOBAL
>flag set. If you're statically linking, there's probably
>an equivalent linker switch. I was using KDE which has
>a method for globally loading libs. libtool looked
>messier, but fortunately I didn't need to get into it.
>
>man dlopen (at least for Linux).
>
>Jim
>

Thanks Jim, passing -Wl,-E to the linker does the trick on HP-UX. I can
import time and math modules OK now.
-- 
Richard Townsend



More information about the Python-list mailing list