Workbook for SLD Offline Users - Link using the Old Command, MAKESHR

New users are advised to Link using the EXPEDITE Command. But it is also possible to use the older command, MAKESHR, to do some of the same work.

The following example can be substituted into the Link section of the Workbook page, Compile, Link and Run to do the work using the MAKESHR command.

You can use the command @PRODUDUC:MAKESHR to create a shareable image out of your object code.

For example, to do this on our example file WBPREP1:

   > @PRODUDUC:MAKESHR WBPREP1
Keep in mind that if the compilation was performed on an Alpha, the MAKESHR must be performed on an Alpha. If the compilation was performed on a VAX, the MAKESHR must be performed on a VAX.

If MAKESHR is successful, no messages will be issued.

You should have two new files in your directory.

MAKESHR will work for many simple Prepmort files.

If you have a group of Prepmort routines, you can put them all into a single shareable by first compiling all of them and then including all of their names in a single MAKESHR command.

You can have as many different shareables as you like (provided they do not contain overlapping routines).

Routines written in the C language can be linked the same way as Prepmort routines. After compiling them, use MAKESHR just as you would for Prepmort.

There are some cases you will encounter later when MAKESHR will not be the appropriate tool to create your shareable:

In such cases, you should use the newer command,

Back to Compile, Link and Run

Joseph Perl
13 September 1995