2.6 Compiling a Program Using kapf

Use the following command to execute KAP as a standalone preprocessor:

kapf [kap_qualifier_string] myprog.f /cmp=myprog_cmp.f

After preprocessing your program, give myprog_cmp.f to the Digital Fortran compiler and to the linker, as follows:

fort /fast/automatic/optimize=(tune=host,level=5) myprog_cmp.f

link /EXECUTABLE=myprog.exe myprog_cmp.obj


Note
When you use kapf to process a file, you must set the Digital Fortran compiler and linker qualifiers appropriately. For this reason, Digital recommends that you use kfort whenever possible, as kfort automatically sets the compiler and linker qualifiers correctly.


Previous Page | Next Page | Contents | Index |
Command-Line Qualifiers