A First Example



next up previous contents index
Next: A Simple Program Up: Tutorial Previous: Caveat

A First Example

 

We use a simple example to introduce both Fortran M and the Fortran M compiler. We assume that Fortran M is already installed  on your computer. (If it is not, read the documentation provided with the Fortran M software release.)

Before you can use Fortran M, you must tell your environment where to find the compiler. (Normally, this will be /usr/local/fortran-m, but some systems may place the compiler in a different location.) If you are using the standard Unix C-shell (csh), you add one line to the end of the file .cshrc in your home directory. If the compiler has been installed in /usr/local/fortran-m, this line is

The environment variable path tells the Unix shell where to find various programs such as the Fortran M compiler. This shell command adds the directory containing the compiler to your shell's search path. You may have to log out and log in again for this to take effect.





Steve Tuecke
Tue Aug 30 12:20:34 CDT 1994