在Eclipse CDT中不能指定多个rpath

我想在GCC C ++ Linker的杂项部分指定多个rpaths。

链接器标志:

-Wl,-rpath=/home/cri/Libs1, -Wl,-rpath=/home/cri/Libs2

对于一个工作,但是当我添加第二个我得到这个错误:

 /usr/bin/ld: cannot find : No such file or directory collect2: ld returned 1 exit status make: *** [libmylib.so] Error 1 

我可以得到一些帮助,我做错了什么?

你必须在两个标志之间放下逗号(而且我没有使用相同的符号):

 -Wl,-rpath /home/cri/Libs1 -Wl,-rpath /home/cri/Libs2 

这应该工作。