nld and noft Manual

nld and noft Manual520384-003
6-1
6 ar Utility
The ar utility creates and maintains archives composed of groups of object files. You
can mix PIC and non-PIC files in an archive. After an archive has been created, new
files can be added and existing files can be extracted, deleted, or replaced.
The ar utility runs in the following environments:
Guardian
Open System Services (OSS)
The following PC platforms:
To run the ar utility, use the following syntax. The syntax is the same in every
environment in which ar runs:
action-option
is an ar option that specifies the action to be performed. The action options are as
follows:
Platform
Operating System
Windows 98 Windows NT Windows 2000 Windows XP
TDS
1
Yes Yes No No
ETK
2
No Yes Yes Yes
1. HP Tandem Development Suite
2. HP Enterprise Toolkit—NonStop Edition
ar action-option [modifier-option ...] [position_name]
archive [file ...]
Name Function (page 1 of 2)
-d Delete the specified file(s) from the archive.
-m Move the specified file(s). The -a, -b, or -i option with
the position-name operand indicates the destination of
the move; otherwise, move the files to the end of the
archive.
-p Write the contents of the specified file(s) from the archive
to the standard output. If no files are specified, write the
contents of all files in the archive, from first to last.
-q Quickly append the specified file(s) to the end of the
archive file. In this case, ar does not check whether the
added members are already in the archive. This is useful
to bypass the searching otherwise done when creating a
large archive file piece by piece.