I want to compile a fortran77 code and after using the commange :
fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsacio.a fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsac.a gcc -o mlmcodaq-sn.f -o mlmcodaq-sn.f
I got the message : gcc: error: fort77: No such file or directory
Do you know any idea please how to solve this problem?
I want to compile a fortran77 code and after using the commange :
fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsacio.a fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsac.a gcc -o mlmcodaq-sn.f -o mlmcodaq-sn.f
I got the message : gcc: error: fort77: No such file or directory
thank you so much for your quick replay,
In this commande, you can find two fortran77 source files:
mlmcodaq-sn.f
lscodaq-sn.f
and two C-Shell files.
batch-mlmcodaq-sn.csh
batch-lscodaq-sn.csh
Because the fiels are written with fortran77, could you please tell me how I should compile these files
thank you so much for your quick replay,
In this commande, you can find two fortran77 source files:
mlmcodaq-sn.f
lscodaq-sn.f
and two C-Shell files.
batch-mlmcodaq-sn.csh
batch-lscodaq-sn.csh
Because the fiels are written with fortran77, could you please tell me how I should compile these files
There is nothing particularly special about FORTRAN 77: gfortran and a variety of other Fortran compilers can handle such source files as
Fortran in its modern versions (90, 95, 2003, 2008, 2018, ...)
are all backward compatible. There may be small issues, but those
relate to very obscure features of older versions and unusual extensions.
So probably, if you replace "fort77" by "gfortran" in the command
you showed, it will simply work.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 159 |
Nodes: | 16 (0 / 16) |
Uptime: | 97:58:20 |
Calls: | 3,209 |
Files: | 10,563 |
Messages: | 3,009,574 |