Linking Executables or Compound DLLs without Compiling

When you use the hpj command to link executables or compound DLLs without compiling, you minimally generate either a .exe or a .jll file for all of your object modules. You do not, of course, generate any additional object modules. Information about using the hpj command options to control your compilation activities is found in the topic Building Executables and DLLs.

To link executables or compound DLLs without compiling:

  1. Specify the hpj command and either the -exe or the -jll option (mandatory).
  2. Specify one or more object modules that you want to link (mandatory). (For each class that comprises your executable or compound DLL, you need to specify the corresponding object module of the class.)
  3. Specify one of the Output options to indicate the output location of the code (optional).

Example:

In this example, you link (without compiling) a compound Java DLL that contains the Animator and Animator2 classes.


hpj -jll -o Animator.jll Animator.o Animator2.o

In the above example (not supported in this release), the -jll option instructs the compiler to generate a compound DLL. The -o option specifies that the compound DLL is to be named Animator.jll. (You would use the -exe option if you wanted to generate an executable rather than a DLL.) The entire list of object code modules (Animator.o and Animator2.o) is specified as input to the hpj command.


hpj -jll -o Animator.jll Animator.obj Animator2.obj

In the above example, the -jll option instructs the compiler to generate a compound DLL. The -o option specifies that the compound DLL is to be named Animator.jll. (You would use the -exe option if you wanted to generate an executable rather than a DLL.) The entire list of object code modules (Animator.obj and Animator2.obj) is specified as input to the hpj command.

 


Java Executables and DLLs


Building Executables and DLLs


hpj Command
hpjava Command