There are two basic kinds of software libraries: Static library. A library in which modules are bound into the executable file before execution. Static libraries are commonly named libname.a. The .a suffix refers to archive.
Dynamic library. A library in which modules can be bound into the executable program at runtime. Dynamic libraries are commonly named libname.so. The .so suffix refers to shared object. The easy way: use GNU libtool. (`info libtool`) The hard way: gcc -g
【在 o********g 的大作中提到】 : and how to generate .a file with source code?