IBM COBOL for AIX application compile and link options
The compile and link options for building COBOL embedded SQL and Db2® API applications with
the IBM® COBOL for AIX®
compiler are available in the
bldapp
build script.
Compile and link options for bldapp
Compile
options:
cob2
- The IBM COBOL for AIX compiler.
-qpgmname\(mixed\)
- Instructs the compiler to permit CALLs to library entry points with mixed-case names.
-qlib
- Instructs the compiler to process COPY statements.
-I$DB2PATH/include/cobol_a
- Specify the location of the Db2 include files. For
example:
$HOME/sqllib/include/cobol_a
. -c
- Perform compile only; no link. Compile and link are separate steps.
Link options:
cob2
- Use the compiler as a front end for the linker.
-o $1
- Specify the executable program.
$1.o
- Specify 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. For example:
$HOME/sqllib/lib32
. -ldb2
- Link with the database manager library.
Refer to your compiler documentation for additional compiler options.