2. Embedded SQL for C : Preprocessor Operation : How Embedded SQL Programs are Linked—Windows : Link Precompiled Forms
 
Share this page                  
Link Precompiled Forms
In order to use a precompiled form in your program, you must follow the steps described here.
To link a precompiled form
1. In VIFRED, select a menu item to compile a form. VIFRED then creates a file in your directory describing the form in C. Select a name for the file.
2. After creating the C file, compile it into linkable object code using, for example, the cl compiler:
cl -c filename
3. The output of this command is a file with the extension .obj. Link this object file with your program by listing it in the link command, as shown in the following example, which includes the compiled form empform.obj:
link -out:formentry.exe formentry.obj empform.obj ^
     %II_SYSTEM%\ingres\lib\libingres.lib