Pergunta

Is there a way of disabling the line length limit in the gfortran compiler? I am porting from ifort to gfortran and I wonder if there is an easy way to do so without going through the code and introduce line continuation by hand everywhere where it is needed.

Foi útil?

Solução

Investigate the options

-ffixed-line-length
-ffree-line-length

GCC manual:

-ffixed-line-length-n

Set column after which characters are ignored in typical fixed-form lines in the source file... Popular values for n include 72 (the standard and the default), 80 (card image), and 132 (corresponding to “extended-source” options in some popular compilers). n may also be ‘none’, meaning that the entire line is meaningful and that continued character constants never have implicit spaces appended to them to fill out the line. -ffixed-line-length-0 means the same thing as -ffixed-line-length-none.

-ffree-line-length-n

Set column after which characters are ignored in typical free-form lines in the source file. The default value is 132. n may be ‘none’, meaning that the entire line is meaningful. -ffree-line-length-0 means the same thing as -ffree-line-length-none.

Outras dicas

I used -ffree-line-length-none so that my extra long lines in the source code didn't cause errors

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top