DB2 Version 10.1 for Linux, UNIX, and Windows

HP-UX Micro Focus COBOL application compile and link options

The compile and link options for building COBOL embedded SQL and DB2® API applications with the Micro Focus COBOL compiler for HP-UX are available in the bldapp build script.

Compile and link options for bldapp

Compile options:
cob
The Micro Focus COBOL compiler.
-cx
Compile to object module.
$EXTRA_COBOL_FLAG
Contains "-C MFSYNC" if the HP-UX platform is IA64 and 64-bit support is enabled.
Link options:
cob
Use the compiler as a front end for the linker.
-x
Specify an executable program.
$1.o
Include the program object file.
checkerr.o
Include the utility object file for error checking.
-L$DB2PATH/$LIB
Specify the location of the DB2 runtime shared libraries.
-ldb2
Link to the DB2 library.
-ldb2gmf
Link to the DB2 exception-handler library for Micro Focus COBOL.

Refer to your compiler documentation for additional compiler options.