Dynamically linking libraries while compiling code

How dynamic linking for modular libraries works on Linux