I try to call from Python several routines contained in a .so library generated from some Fortran 90 routines. All the objects in the library are resolved using the -fPIC flag when compiling the .so.
I have a sample code which looks like
Code:
from numpy import * from ctypes import * lib_test = cdll.LoadLibrary("./lib_test.so") method = lib_test.__test_MOD_wrap_xbelem