LF Fortran Express User's Guide - Lahey Computer Systems, Inc.
LF Fortran Express User's Guide - Lahey Computer Systems, Inc.
LF Fortran Express User's Guide - Lahey Computer Systems, Inc.
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Chapter 1 Getting Started<br />
Uninstalling <strong>LF</strong> <strong>Fortran</strong><br />
To completely remove the <strong>Lahey</strong>/Fujitsu <strong>Fortran</strong> product installation, open the Add/Remove<br />
Programs applet in the system Control Panel. Select <strong>Lahey</strong>/Fujitsu <strong>Fortran</strong> v7.3 and press the<br />
Remove button. You will be prompted to confirm the removal, then the uninstall program<br />
will continue.<br />
Building Your First <strong>LF</strong> <strong>Fortran</strong> Program<br />
Building and running a <strong>Fortran</strong> program with <strong>LF</strong> <strong>Fortran</strong> involves three basic steps:<br />
1. Creating a source file using a suitable non formatting text editor.<br />
2. Generating an executable program using <strong>LF</strong> <strong>Fortran</strong>. The <strong>LF</strong> <strong>Fortran</strong> driver automatically<br />
compiles the source file(s) and links the resulting object file(s) with the runtime<br />
library and other libraries you specify.<br />
3. Running the program.<br />
The following paragraphs take you through steps two and three using the DEMO.F90 source<br />
file included with <strong>LF</strong> <strong>Fortran</strong>. For the sake of illustration, we will use the command line<br />
interface to invoke <strong>LF</strong> <strong>Fortran</strong>, even though it is a windows application.<br />
Generating the Executable Program<br />
Compiling a source file into an object file and linking that object file with routines from the<br />
runtime library is accomplished using the <strong>LF</strong>95.EXE driver program.<br />
Open a system command prompt by selecting Start|Programs|<strong>Lahey</strong>-Fujitsu <strong>Fortran</strong> v7.3|<strong>LF</strong><br />
Console Prompt. From the command prompt, build the demo program by changing to <strong>LF</strong><br />
<strong>Fortran</strong>’s EXAMPLES directory (where DEMO.F90 is installed), and entering<br />
<strong>LF</strong>95 demo<br />
This causes the compiler to read the source file DEMO.F90 (the extension.F90 is assumed by<br />
default) and compile it into the object file DEMO.OBJ. Once DEMO.OBJ is created, <strong>LF</strong> <strong>Fortran</strong><br />
invokes the linker to combine necessary routines from the runtime library and produce<br />
the executable program, DEMO.EXE.<br />
18 <strong>LF</strong> <strong>Fortran</strong> <strong>Express</strong> User’s <strong>Guide</strong>