The GNU archiver ar combines a collection of objects files into a single archive file, also know as a library. An archive file is simply a convenient way of distributing a large number of related object files together.
You can use the followning command to create a static library:
$ ar cr libName.a file1.o file2.o ... filen.o
The archiver ar also provides a “table of contents” option ‘t’ to list the object files in an existing library.
Creating a Library with arThe GNU archiver ar combines a collection of objects files into a single archive file, also know as a library. An archive file is simply a convenient way of distributing a large number of related object files together.You can u