Creates a shared library file from the files input to the cob command. The input file can be any file type except a .gnt file. By default, the name of this module is the basename of the first object being linked with a prefix of lib and the filename extension .so (or .sl on HP-UX PA-RISC).
The CC option to the -Z flag enables you to link COBOL and C++ objects into a library file. If C++ (.C) source files are specified, the C++ compiler is invoked to compile them to object code first.
For example, if you want to link the C++ program cprg.C and the COBOL program cobprg.cbl, use the following command:
cob -Z,CC cobprg.cbl cprg.C