Archive libraries
The ar utility allows you to create and maintain a library of z/OS® XL C/C++ application object files. You can specify the c89 and c++ command strings so that archive libraries are processed during the IPA link step or binding.
The archive library file, when created for application program object files, has a special symbol table for members that are object files. The symbol table is read to determine which object files should be bound into the application program executable file. The binder processes archive libraries during the binding process. It includes any object file in the specified archive library that it can use to resolve external symbols. Use of this autocall library mechanism is analogous to the use of Object Libraries with object files in data sets. For more information, see Object library utility.
.a,
as in file.a. For example; source file dirsum.c is
in your src subdirectory in your working directory, and
the archive library symb.a is in your working directory.
To compile dirsum.c and resolve external symbols from symb.a, and
create the executable in exfils/dirsum enter:
c89 -o exfils/dirsum src/dirsum.c symb.a