Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot specify multiple rpath in Eclipse CDT

I would like to specify in the Miscellaneous section of GCC C++ Linker multiple rpaths.

Linker Flags:

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

For one it's working, but when I add the second one I get this error:

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

Could I get please some help on what I'm doing wrong ?

like image 253
cristian Avatar asked May 29 '26 08:05

cristian


1 Answers

You have to drop the comma between the two flags (and I use it without equal symbols):

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

That should work.

like image 196
Paolo M Avatar answered May 31 '26 05:05

Paolo M