DB2 Version 9.7 for Linux, UNIX, and Windows

Building embedded SQL applications from the command line

Building embedded SQL applications from the command line involves the following steps:
  1. Precompile the application by issuing the PRECOMPILE command
  2. If you created a bind file, bind this file to a database to create an application package by issuing the BIND command.
  3. Compile the modified application source and the source files that do not contain embedded SQL to create an application object file (a .obj file).
  4. Link the application object files with the DB2® and host language libraries to create an executable program using the link command.