C++ Run time Linker error (liblog4cpp.so.5) Eclipse

584 Views Asked by At

When I try to build and run the application I wrote from the Eclipse IDE, I am getting an error:

"error while loading shared libraries: liblog4cpp.so.5: cannot open shared object file: No such file or directory".

No compilation errors. But if I run the generated output file from the terminal, the application runs normally. When I use ldd for the application, all the libraries are lined.

From Eclipse, all the library paths are defined too.

project compiled build on Redhat7 OS and I use the log4cpp from below location https://sourceforge.net/projects/log4cpp/

What should be the issue

1

There are 1 best solutions below

0
DINBANDHU KUMAR On

Reinstalling iblog4cpp5v5 worked for me. You can do with:

sudo apt install --reinstall liblog4cpp5v5