On Thu, 14 Sep 2017 14:28:08 +0430 Mahmood Naderan <mahmood...@gmail.com> wrote:
> >In short, "mpicc -Wl,-rpath=/my/lib/path helloworld.c -o hello", will > >compile a dynamic binary "hello" with built in search path > >to "/my/lib/path". > > Excuse me... Is that a path or file? I get this: It should be a path ie. directory. > mpif90 -g -pthread -Wl,rpath=/share/apps/computer/OpenBLAS-0.2.18 -o > iotk_print_kinds.x iotk_print_kinds.o libiotk.a > /usr/bin/ld: rpath=/share/apps/computer/OpenBLAS-0.2.18: No such > file: No such file or directory I think it didn't like passing "-rpath=/a/b/c" in one chunk. Try this variant: -Wl,-rpath,/path/to/directory or even: -Wl,-rpath -Wl,/path/to/directory /Peter _______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users