我有一个需要libtest.so动态链接的可执行文件,所以我将它们放在同一目录中,然后:
cd path_to_dir
./binary
Run Code Online (Sandbox Code Playgroud)
但是得到了这个:
error while loading shared libraries: libtest.so: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
它怎么可能找不到libtest.so与可执行文件本身在同一目录中的内容?