3. Embedded QUEL for COBOL : Precompiling, Compiling, and Linking an EQUEL Program : Incorporating Ingres into the Micro Focus RTS--UNIX : Procedure 1
 
Share this page                  
Procedure 1
Use this procedure if your platform accepts the EXTERNAL clause to reference objects linked into your RTS.Build and compile the form(s) in VIFRED.
When you compile a form in VIFRED, you are prompted for the name of the file, and VIFRED then creates the file in your directory describing the form in C.
1. Compile the C file into object code:
$ cc -c formfile.c
2. Link the compiled forms into your RTS by modifying the cob command line to include the object code files for the forms. List the files before listing the system libraries that will be linked.
For example:
cob -x -e "" -o ingfrs \
    iimfdata.o iimflibq.o iimffrs.o \
    form1.o form2.o \
    ...