Image description: compiling and linking a class definition

This image shows a COBOL class definition and the commands that you use to compile and link the class. This text conveys all the information contained in the image.

Here is the COBOL class definition:

Identification division.
Class-id Manager inherits Employee.
Environment division.
Configuration section.
Repository.
      Class Manager is "Manager"
      . . .
End class Manager.

Here are the steps for compiling and linking this class definition:

  1. Use the following command to compile the COBOL class definition Manager.cbl:
    cob2_j -c Manager.cbl

    This command produces the Java class definition Manager.java and the object file Manager.o.

  2. Use the following command to compile the Java class definition Manager.java:
    javac Manager.java

    This command produces the executable component Manager.class.

  3. Use the following command to link the object file Manager.o:
    cob2_j -o libManager.so -bnoentry -bM:SRE Manager.o

    This command produces the shared library libManager.so.

End of image description.