When your program is running correctly, you'll need to use ftp
software to move it to csc.oakton.edu and then use telnet
software to submit it. In order to use this compiler, you will need
to install the MinGW compiler. These
notes are from a MS Windows XP machine running F 20020224.
The F compiler is a self extracting executable that
will install into the correct directory, but requires one additional step
in configuration. The directory will be based upon the release number and
the date. For example, if you are downloading the installer for update
2/24/02, the directory would be C:\f_win_020224\F.
The last step is to add the \bin subdirectory of the F installation to your PATH (the procedure for doing this varies based on the operating system version you are using). In old MS operating systems, you can simply edit your autoexec.bat file with an ASCII editor. In MS XP, I had to find the Control Panel and then the System icon.
In that form, click on the Advanced and then the Environment
Variable buttons.
Click on the PATH variable and then the Edit button
and insert the correct path into the PATH list. Naming
conventions are C:\f_win_<date>\F\BIN , such as C:\f_win_020224\F\BIN;
Click
on all of the OK buttons until you are again at the
Control Panel.
You will also need to create an environment variable named TMPDIR that the compiler will be able to write temporary files to. Create and choose any directory that you don't normally use.
From the MS Start icon, move to the Programs and then
the Accessories and then to Notepad (other ASCII editors
can be used).
Type your source file into the editor.
Save the program into a file, let's call it hello.f90
and open a DOS window. This can by done by typing cmd
into the window of the Run command. You may need to use the
cd
command to make sure that the DOS window is in the same directory as the
source file.
Compile the program by typing the the command f -o hello hello.f90
into the DOS window Correct any syntax errors before proceeding.
Execute the program by typing the command hello into
the DOS window.