问题描述
有什么方法可以使gfortran拒绝Fortran 77中添加的Fortran 95吗?
Is there any way to get gfortran to reject the Fortran 95 additions to Fortran 77?
我尝试使用-std=legacy
标志,但这似乎只是从f77程序中删除了过时警告; f95增强功能仍然可以正常工作.
I've tried using the -std=legacy
flag but that only seems to remove deprecation warnings from f77 programs; the f95 enhancements still work fine.
推荐答案
我也会尝试使用几个gfortran编译器标志进行尝试.
I would have also tried it with a couple of gfortran compiler flags.
如果您灵活使用其他库,则除了f77之外,还有另一个Fortran 77编译器.它从Concurrent称为cf77.它是一个包括一些实时库的编译器.在这里,您可以找到文档
If you are flexible with additional libraries there is another Fortran 77 compiler besides f77.It is called cf77 from Concurrent. It is a compiler including some real time libraries. Here you can find the Documentation
据我所知,仍然需要支付许可费.但是此编译器仅支持f77,仍包含旧库.
As I remember there is still a license fee. But this compiler supports pure f77 and still has the old libraries included.
另一个选择可能是使用g77编译器并最终降级可用的库.这是g77编译器的手册.
Another option could be using the g77 compiler and eventually downgrading your available libraries. Here is a Manual for the g77 compiler.
这篇关于gfortran编译器标志用于严格遵守Fortran 77的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!