Loading the shared library I want

Hi All
I have been given by someone else header file and a shared library to be used by my C++ application. Compilation is fine but when I try to executes the application I receive the following error.

./first: error while loading shared libraries: libMyLib.so.9: cannot open shared object file: No such file or directory

Is there any way to force the application to dynamically link with this library without any extra step like installing it on the machine?
Thanks

You can use the LD_LIBRARY_PATH variable to add additional search paths for the dynamic linker, eg:

LD_LIBRARY_PATH=. ./first

In the long run, however, it would be wiser to put the library into one of the default paths.

It works
Thank you very much!
Mn