Need FORTRAN 77 compiler for Windows XP
July 31st, 2018
Have you tried MinGW? It comes with a FORTRAN 77 compiler or so I think.
http://www.mingw.org/
Cheers, mate.
Intel Visual Fortran,Search on apps.
Yeah, I installed this, but I can’t get it to compile a test fortran program
I got 2 options for you:
If you have Visual Studio, which compiles code on Windows obviously, download and install the Intel Fortran Compiler. During the installation it will recognize Visual Studio and it will embed its features in it. After that, you can compile fortran using Visual Studio.
http://software.intel.com/en-us/articles/intel-compilers/
Lahey has Fortran compilers that work with Visual Studio. http://www.lahey.com/
Ok, so I got FOTRAN to work. Now I try compiling a program and it compiles and runs. However the result is weird. See source code and result below. I get **** as answer. Can someone pls tell me what I am missing. Thanks and regards.
PROGRAM SUMNUM
INTEGER SUM,COUNTER,A
COUNTER=0
SUM=O
5 READ(*,*)A
SUM=SUM+A
COUNTER=COUNTER+1
IF (COUNTER .LT. 10) GOTO 5
WRITE(*,10)SUM
10 FORMAT(/,'THE SUM OF ALL TEN NUMBERS=',1X,I4)
STOP
END
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Postgraduate\Programming\FORTRAN>gfortran first.f
D:\Postgraduate\Programming\FORTRAN>a.exe
1
2
3
4
5
6
7
8
9
0
THE SUM OF ALL TEN NUMBERS= ****
D:\Postgraduate\Programming\FORTRAN>