There are different
methods that you can use to build embedded SQL applications, such
as by using build scripts or the command line. You can use the command
line if you want to test build options before writing a script to
automate the process.
Building embedded SQL applications from the command line involves
the following steps:
- Precompile the application by issuing the PRECOMPILE command
- If you created a bind file, bind this file to a database to create
an application package by issuing the BIND command.
- Compile the modified application source and the source files that
do not contain embedded SQL to create an application object file
(a .obj file).
- Link the application object files with the DB2® and host language libraries to create an
executable program using the link command.