XL C/C++ V7.0 (for AIX) Compiling and linking a library
Compiling a static libraryTo compile a static (unshared) library:Compile each source file into an object file, with no linking. Use the AIX ar command to add the generated object files to an archive library file.For example:xlc -c bar.c example.c ar -rv libfoo.a bar.o example.o Compiling a shared libraryTo create a shared library that uses static linking:Compile each source file into an object file, with no linking. For example: xlc -c foo.c -o foo.oOptionally, create an export file listing the