g++ - my own .so lib Ubuntu->Debian migration (cannot open shared library) -
recently migrated self ubuntu debian, (fortunetly didn't delete old os) on ubuntu had written litle library called
libmyh.so
i've used in other app
g++ (...) -lmyh -l../codesamples/myh/lib
and ran perfectly, on debian witch same makefile get:
./glui.out: error while loading shared libraries: libmyh.so: cannot open shared object file: no such file or directory
any clue wat wrong?
.so
files not linked g++, because not static libraries (which end .a
) or compilation objects (.o
).
instead, set path load dynamic libraries:
export ld_library_path=/path/to/codesamples/myh/lib ./glui.out
as not related debian vs ubuntu, think have set variable on ubuntu system not on debian one.
Comments
Post a Comment