Loading mysql library error..

I am making cpp application with mysql databases. I m able to compile my application, but when i m executing the program, i m getting the loading errror as -

error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

can any one give me the reason & solution to this error...

Thanks in adv.

If you are on linux, try running ldconfig. OTherwise your process will have to define LD_LIBRARY_PATH to define the location of the library with a complete (not relative) path.

Hey it's ldconfig. Its working for me with ldconfig. Thanks for the suggestion.