This document describes the installation and use of one freely available environment that consists of:
running under MS-Windows.
The "Basic Installation" process described below will give you everything
you need to edit (using SciTE) and compile (using the
cmd shell) FORTRAN 9x programs. The "Advanced Installation"
process also gives you a Unix-like Bourne Shell, and the GNU Compiler
Collection (which includes FORTRAN 77, C/C++, and some other languages).
basic that can be
copied, as is, to your hard disk. Here we assume that you
want to install to the directory c:\fortran.
(Note: This process looks longer than the "Advanced Installation"
because the instructions are more detailed. The entire process
takes only a few minutes.)
c:\fortran on your
hard disk either from the cmd shell or using
the Windows Explorer.
basic
directory on the CD to c:\fortran. When you
are done you shold have the following three directories:
c:\fortran\bin, c:\fortran\doc, and
c:\fortran\lib.c:\fortran\bin directory in the
Windows Explorer.SciTE.exe and pull down
to Create Shortcut.Shortcut to SciTE.exe to your
desktop.System Variables window, click on
Path and click on the Edit button.Variable value: field and press the
End key to go to the end of the field.;c:\fortran\bin (note the
semicolon).
In some cases, for example on some HP computers, you may
need to type the following:
;c:\fortran\bin;c:\fortran\lib;c:\fortran\lib\gcc-lib\i686-pc-mingw32\4.0.3\
System Variables window.Variable name: field and type
LIBRARY_PATH
Variable value: field and type
c:\fortran\lib
In some cases, for example on some HP computers, you may
need to type the following:
;c:\fortran\lib;c:\fortran\lib\gcc-lib\i686-pc-mingw32\4.0.3\
advanced that
contains several installers.
MinGW-4.1.1.exe installation
executable (e.g., double-click
on the icon)and accept all of the defaults.
(This executable will download additional files so you must
remain connected to the Internet.)MSYS-1.0.10.exe installation executable
and accept all of the defaults.
(This executable will open a command shell window. Make sure
to run the normalization when asked.)g95-MinGW.exe installation executable
and install to the MinGW directory (which will
probably be c:\MinGW). Do not
install the MinGW Utilities when prompted. Do allow
the installer to set the
PATH and LIBRARY_PATH.c:\msys\1.0\bin to the PATH.
Specifically:
System Variables window, click on
Path and click on the Edit
button.Variable value: field and
press the End key to go to the end of
the field.;c:\msys\1.0\bin
(note the semicolon).scite directory
(not the directory itself) to the
MinGW binaries directory (which will
probably be c:\MinGW\bin).c:\MinGW\bin) in the
Windows Explorer, right click on the file name
SciTE.exe and pull down to Create
Shortcut. Then, move the file named Shortcut
to SciTE.exe to your desktop.acc=access | act=action | ad=advance | ap=apostrophe | asso=associate\n |\nend associate asy=asynchronous | ba=backspace | bi=bind | bla=blank | blo=blockdata\n |\nend blockdata ch=character | cla=class | clo=close | comm=common | comp=complex | cy=cycle | da=data | di=dimension | do=do\n |\nend do dow=dowhile \n |\nend do dou=doubleprecision | eq=equivalence | ext=external | fi=file\n |\nend file fl=flush | for=forall\n |\nend forall fu=function\n |\nend function if=if\n |\nendif im=implicit | inc=include | int=integer | inq=inquire | inter=interface |\n\nend interface log=logical | m=module |\nend module op=open | par=parameter | pau=pause | pen=pending | pr=print | prog=program |\n\nend program rec=recursive | res=result | ret=return | rew=rewind | sel=select\n |\nend select sub=subroutine |\n\nend subroutine ta=target | th=then | ty=type\n |\nendtype unf=unformatted | va=value | vo=volatile | whe=where\n |\nendwhere whi=while | wri=write |
So, for example, after you add the above, if you type
prog and Ctrl+b
SciTE will build an empty program
skeleton for you.
cmd.exe can be accessed
from the Start menu by choosing run
and entering cmd.exe in the dialog box.
You can compile and link FORTRAN programs using the g95
command.
cmd.exe and command.com provided
with MS-Windows) that allows you to develop
programs as you would using a UNIX/Linux command shell.
You can start this command shell either by clicking on the
MSYS/MinGW icon on your desktop or using the MinGW folder under the "Start"
button (you may need to look inside of the "All Programs" entry).
You can compile and link FORTRAN programs using the g95
command.
Copyright 2019