Compile fortran module with f2py
问题 I have a Fortran module which I am trying to compile with f2py (listed below). When I remove the module declaration and leave the subroutine in the file by itself, everything works fine. However, if the module is declared as shown below, I get the following results: > f2py.py -c -m its --compiler=mingw itimes-s2.f ... Reading fortran codes... Reading file 'itimes-s2.f' (format:fix,strict) crackline: groupcounter=1 groupname={0: '', 1: 'module', 2: 'interface', 3: 'subroutine'} crackline: