User`s guide

LIBRARY
Execution and Prompting Sequence of LIBRARY Options
The following table lists the sequence in which RT–11 executes the LIBRARY options
and prompts you for additional information.
Option Prompt
/CREATE
/DELETE Module name?
/REMOVE Global?
/UPDATE
/REPLACE
/INSERT
/LIST
The following example combines several options:
.LIBRARY/LIST:TT:/REMOVE/INSERT NEWLIB LIB2/REPLACE,LIB3
Global? SQRT
Global?
RT-11 LIBRARIAN V05.6 FRI 10-MAY-91 00:08:37
NEWLIB FRI 10-MAY-91 00:08:35
MODULE GLOBALS GLOBALS GLOBALS
COS SIN
DATAN DATAN2
ATAN ATAN2
DCOS DSIN
This LIBRARY command executes in the following sequence:
1. Removes the global SQRT from the NEWLIB.OBJ library directory.
2. Replaces any duplicates of the modules in the file LIB2.OBJ.
3. Inserts the modules in the file LIB3.OBJ.
4. Lists the directory of NEWLIB.OBJ on the terminal.
Creating Files for a Macro Library
When creating files for a macro library, you should assemble a macro file before
submitting it to the Librarian (LIBR) utility. The MACRO–11 assembler can pick
up some errors that LIBR cannot. For example, assume a macro file TEST.MAC,
residing on device DK, that contains macros that will become a macro library
TEST.MLB, also residing on device DK. First, issue the command MACRO TEST
to check for any errors that come from the assembly. Then, issue the command
LIBRARY/MACRO TEST to generate the macro library.
See the RT–11 System Macro Library Manual for more information on the system
macro library (SYSMAC).
RT–11 Command Descriptions 157