This is a basic into on making libraries for a unix/linux machine using standard gnu tools.

Static libraries

The things you need to know when compiling a static library are : The things you need to know when using a static library are :

Shared libraries

The things you need to know when compiling a shared library are : The things you need to know when using a shared library are : If I can't install the library, I usually write a shell script to set LD_LIBRARY_PATH for me and run the program.
#!/bin/sh
export LD_LIBRARY_PATH=.
./$@