I am using f2py and Intel fortran compiler to wrap some fortran code which calls some math library like dexp
and dpow
.
The compilation went smoothly without reporting any err, but when I attempted to run the wrapped python modules, the error prompts up:
ImportError: /usr/lib/python2.7/site-packages/foo/foo.so: undefined symbol: vmldExp2
I switched to gfortran and it seems that the similar problem persists, but for vmldPow2
.
How can I fix this in the f2py context?