Skip to content Skip to sidebar Skip to footer

Can Python Ctypes Load A 32bit C Library On X86-64?

I have a 64 bit RHEL host with 32 bit libraries installed. One vendor has a 32 bit .so I'd like to load into Python using ctypes. from ctypes import CDLL CDLL('32bitdinosaur.so')

Solution 1:

It looks like the best way to do this is to have a 32 bit python in a separate process load the .so, and call the 32 bit python from a 64 bit Python.


Post a Comment for "Can Python Ctypes Load A 32bit C Library On X86-64?"