Quote Originally Posted by rockballad View Post
despite that fact that I moved the library file to the directory of executable file (application).
This only works in Windows. On Unix the dynamic loader needs to be informed where the libraries are. If you don't want to place a library in one of the standard locations (like /usr/lib) you need to point the linker to the proper place. On Linux you would do it by setting the LD_LIBRARY_PATH environment variable to point to the directory containing your libraries. GCC can also hardcode a library search path by using the so called "rpath" linker directive.