A library is a collection of subroutines that allows the code of those subroutines to be used as separate modules.
Simple Shell was our team project with Aurelie Cedia at the end of the first trimester in Software Engineering Holberton School. The goal of this project is to write a simple UNIX command interpreter. In this article I will describe step by step what happens when you type “ls -l” and hit Enter in a Shell.
Some important details:
A static library is a collection of object files that are attached to a program when the program is linked. Thus, static libraries are used only when creating a program. Then they do not take part in the work of the program itself.
To create static libraries, there is a special simple program called ar (short for archiver). It is used to create, modify and view object files in static libraries, which are really simple archives.
First of all, to create your own static library, you need to write its implementation. Let’s say that we have several .c files with…
Software engineering student at Holberton School