Manipulating Object Library Archive Files



Using UNIX Archive Libraries



Using the ar Command

The standard command for creating, updating and accessing archive files is ar. The options for ar vary from one version of Unix to another. Some options given below may only be applicable to AIX.

Creating and Maintaining an Archive File



Seeing External Symbol Names

The nm command may be used to see which symbols are used or defined in any `.o' file or in any binary executable file. For example:
	ar -v -x /usr/lib/libc.a shr.o
	nm -g shr.o
The nm command can produce lots of output; the ``-g'' flag restricts the output to just global (external) symbols.

 




Previous Section Back to Index Next Section