4. Embedded QUEL for Fortran : Precompiling, Compiling, and Linking an EQUEL Program : Linking an EQUEL Program - UNIX : Compiling and Linking Precompiled Forms
 
Share this page                  
Compiling and Linking Precompiled Forms
The technique of declaring a precompiled form to the FRS is discussed in the Embedded Forms Programming Guide. To use such a form in your program, you must also follow the steps described here. In VIFRED, you can select a menu item to compile a form. When you do this, VIFRED creates a file in your directory describing the form in C. VIFRED lets you select the name for the file. Once you have created the C file this way, you can compile it into linkable object code with the cc command:
cc filename
The output of this command is a file with the extension ".o". You then link this object file with your program by listing it in the link command, as in the following example, which includes the compiled form "empform.o":
f77 -o formentry formentry.o \
empform.o \
 $II_SYSTEM/ingres/lib/libingres.a \
  -lm -lc