2. Embedded SQL for C : Preprocessor Operation : How Embedded SQL Programs are Linked—VMS
 
Share this page                  
How Embedded SQL Programs are Linked—VMS
Embedded SQL programs require procedures from several VMS shared libraries in order to run properly. Once you have preprocessed and compiled an embedded SQL program, you can link it. Assuming the object file for your program is called dbentry, use the following link command:
$link dbentry.obj,-
 ii_system:[ingres.files]esql.opt/opt,-
 sys$library:vaxcrtl.olb/library
The last line in the link command shown above serves to link the C runtime library for certain basic C functions, such as printf. You need to include this line only if you use those functions in your program.