Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: leon on April 08, 2008, 05:24:40 pm
-
How do I make code::blocks add an rpath to my binary. I have tried to add -rpath <pathname> in the other linker options box but all I get is a message "g++: unrecognized option '-rpath,'". I have looked through this forum for an answer but most seem to be related to compiling CB itself. Any ideas.
-
Try "--Wl,-rpath,<pathname>".
-
Try "--Wl,-rpath,<pathname>".
Well thanks that got rid of the error message and compilation completes but the path is still not in the binary. I have checked the path and it is right is there anything else that can interfere with this setting.
-
-Wl,--rpath -Wl,<path>
worked for me.