This is very simple: your library is not in the default system path from them the shared libraries are imported. During the compilation, the compile scripts solved these problems. In runtime, you have the LD_PRELOAD
or LD_LIBRARY_PATH
environment variables.
For example: an export LD_LIBRARY_PATH=/home/darkside/wunderprog/lib
will extend the directoried searched for your libraries with the named directory. If there is your libcasablanca.so
, you will get what you want.
Normally I use a /home/<myusername>/lib
directory in my useronly accounts and set LD_LIBRARY_PATH
from .profile
.