8、 (0x00007fff4b54b000) libb.so => not found liba.so => not found libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd44cfc8000) /lib64/ld-linux-x86-64.so.2 (0x00007fd44d3af000)$ ./a.out ./a.out: error while loading shared li
9、braries: libb.so: cannot open shared object file: No such file or directory # 此时通过 -Wl,-rpath 指定了运行时搜索的路径$ gcc test.c -lb -la -L. -Wl,-rpath=.$ ldd a.out linux-vdso.so.1 => (0x00007fff08da7000) libb