[Numpy-discussion] Calling routines from a Fortran library using python

Dag Sverre Seljebotn dagss@student.matnat.uio...
Thu Feb 18 11:13:41 CST 2010

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

More information about the NumPy-Discussion mailing list