Linux Micro Focus COBOL application compile and link options

These compile and link options are available for building COBOL embedded SQL and Db2® API applications with the Micro Focus COBOL compiler on Linux®, as demonstrated 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
For 64-bit support, contains the value "-C MFSYNC"; otherwise it contains no value.
Link options:
cob
Use the compiler as a front end for the linker.
-x
Specify an executable program.
-o $1
Include the executable.
$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.