I am trying to compile a whole fortran pack for python with f2py. The pack is this one. The problem is that most of the subroutines depend on other subroutines and etc and I can't compile successfully.
I wrote a bash script that loops through all the files and compiles with
FILES=*.f
for f in $FILES
do
echo ${f%??}
f2py -c --fcompiler=gfortran -m ${f%??} $f
done
So as a example for rfftf1.f
it does:
f2py -c --fcompiler=gfortran -m rfftf1 rfftf1.f
and the .so
files are generated but when I import them into python I have
ImportError: ./rfftf1.so: undefined symbol: radf5_
Is there a way to compile everything into their own .so
files as I intended or do I have to somehow merge everything together?
Thank you.