How to Link Static Library in C/C++ using GCC compiler?

Unlike Dynamic Link Library (DLL), the static library are pre-compiled and linked to the binary executables. Once built into the final executables, the static library cannot be shared among …