How Embedded SQL Programs are Linked--Windows
Embedded SQL programs require procedures from an Ingres library. The required library is listed below and must be included in your compile or link command after all user modules. You must specify the library in the order shown in the following examples.
Programs Without Embedded Forms
The following example demonstrates the link command of an embedded SQL program called dbentry that was preprocessed and compiled.
link -out:dbentry.exe dbentry.obj ^
%II_SYSTEM%\ingres\lib\libingres.lib
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
Last modified date: 04/03/2024