Libraries are often created using a library manager such as xiar for Linux or xilib for Windows. Given a list of objects, the library manager will insert the objects into a named library to be used in subsequent link steps.
Use xiar to create a library from a list of objects. For example the following command creates a library named user.a containing the a.o and b.o objects:
xiar cru user.a a.o b.o
Using xiar is the same as specifying xild -lib.
Use xilib or xilink -lib to create libraries of IPO mock object files and link them on the command line.
For example:icx /c /Qipo a.cpp b.cpp c.cpp
xilib -out:main.lib b.obj c.objor
xilink -lib -out:main.lib b.obj c.obj
xilink -out:result.exe a.obj main.lib