Strict fortran77 compiler? (or gfortran compiler f

2019-02-23 19:27发布

Is there any way to get gfortran to reject the f95 additions to Fortran 77? If not, is there another f77-only compiler available for unix systems?

I've tried using the -std=legacy flag but that only seems to remove depreciation warnings from f77 programs; the f95 enhancements still work fine.

1条回答
The star\"
2楼-- · 2019-02-23 20:03

You can set fixed format with

gfortran -ffixed-form -ffixed-line-length-none [sourcefiles]

And this can actually make a difference (I have a program here where this changes the output!).

I’m pretty sure that there are options, which disable at least most of the f95 features.

查看更多
登录 后发表回答