How can I make a shared library which is in
/usr/lib/some-path linkable with the g++
-l argument when compiling?
As far as I know, to do what I want, I need to
chmod 0755 the library
.so file, create some kind of a link file and I need to update the library cache. I tried using
ldconfig command and it worked, but not for the subdirectories of
/usr/lib. I also tried
ln -s /usr/lib/some-path/libmy.so /link/file/output/dir which created a link file, but g++ still couldn't find the library with the
-lmy. I tied running
ln but that did not work.