6

I have a FORTRAN code that required the following compile command

gfortran -c interp.f -ffixed-format -ffix-line-length-none

I compiled the same using f2py module in python

from numpy import f2py

f2py.compile(open('interp.f').read(),modulename='interp',extra_flags='-ffixed-format -ffix-line-length-none',verbose=0)

It is unable to compile the module. It gives an error saying invalid file format '' at '-ffized-format'

Please help

Andy Stow Away
  • 649
  • 1
  • 8
  • 17

1 Answers1

1

Neither -ffixed-format, nor -ffix-line-length-none seem to be valid gfortran options. Consider using -ffixed-form and -ffixed-line-length-none instead.

Oleg2718281828
  • 1,039
  • 7
  • 17