Depending on the language used to create the program units, the following linkage editors must be used:
the C linkage editor
cc
if only C programs are containedthe COBOL linkage editor from Micro Focus or NetCOBOL if at least one COBOL program is contained.
The call of the Micro Focus linkage editor is then as follows:
cob -o utmwork
shared-object UTM-systemlibrariesLinking with NetCOBOL is performed using the
cobol
command. To do this, it is necessary to incorporate the following COBOL libraries:/opt/FJSVcbl64/lib/libFJBASE.so
/opt/FJSVcbl64/lib/libcobol.so
/opt/FJSVcbl64/lib/librcobflm64.so
if you use shared objects in your application, you must always link them dynamically.
the C++ linkage editor CC if at least one C++ program is contained; in this case, no COBOL programs are allowed.
If you want to link an application for 64-bit operation, ensure that all the components that you specify during linking are available in 64-bit mode. It is not possible run a mixture of 32-bit mode and 64-bit mode objects.