List dependencies

shared object dependencies :

cd
ldd ./mousepad | grep libg

ldd invokes the standard dynamic linker with the LD_TRACE_LOADED_OBJECTS environment variable set to 1.
This causes the dynamic linker to inspect the program’s dynamic dependencies,
find and load the objects that satisfy those dependencies.
For each dependency, ldd displays the location of the matching object and the (hexadecimal) address at which it is loaded.