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:
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.