I am a C++ beginner. I have a c++ project that i built using the existing make files. I have a library that I linked from /usr/local/lib. Build is successful but when I run it, its complaining about the library that I linked form /usr/local/lib. If I copy that library to /lib64 and run my program, everything is fine. Please let me know what I should do to avoid this error. Thank you.
error while loading shared libraries: libactivemq-cpp.so.14: cannot open shared object file: No such file or directory
LD_LIBRARY_PATHenvironment variable? - Oliver Charlesworth