How to include shared library build by myself, in CodeBlocks IDE 17.12.
I've CentOS 7 with C++ IDE : Code Blocks 17.12. I Build shared library "libclrscr-getch.so" & header "clrscr-getch.h". I saved these in standard path : for lib "/usr/lib64/clrscr-getch/libclrscr-getch.so" and header in "/usr/include/clrscr-getch/clrscr-getch.h".
In second projct I simply called that shared libarary, by usual way. When I run this in by start button of IDE it works fine, Its working. But when I run this executable in CLI ( terminal ) it shows follwoing error :-
"./clrscr: error while loading shared libraries: libvalidator.so: cannot open shared object file: No such file or directory"
Now I set it's library path in LD_LIBRARY_PATH, it is recognized. and gives right output. Question is : How to add library in location : "/usr/lib64/clrscr-getch".
|