How to link multiple object files to get a library file
I have compiled some C++ files in Linux, and so I have the object files ready. But my goal is to link them into a library file (like a DLL or LIB file in windows). In windows I did it via VS2008 and by creating a library-type project. But in linux, I have no idea how I can do it via command lines. I am using intel C++ V11.1 (x64). Please help me solve the problem.
The stock linux method with ar and ranlib is the one to use with .o files made without -ipo. This is recommended as your first step. The xiar tool which comes with icc is capable of dealing with ipo objects.