Feb. 18, 2010
5:13 p.m.
Christopher Barker wrote:
Matthieu Brucher wrote:
If it is not the case, you will not be able to compile it as a shared library and thus not be able to use it from Python :|
maybe not directly with ctypes, but you should be able to call it from Cython (or SWIG, or custom C code), and statically link it.
If it is not compiled with -fPIC, you can't statically link it into any shared library, it has to be statically linked into the final executable (so the standard /usr/bin/python will never work). Dag Sverre