Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: leon on April 08, 2008, 05:24:40 pm

Title: using rpath[solved]
Post 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.
Title: Re: using rpath
Post by: TDragon on April 08, 2008, 05:54:03 pm
Try "--Wl,-rpath,<pathname>".
Title: Re: using rpath
Post by: leon on April 08, 2008, 06:16:50 pm
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.
Title: Re: using rpath
Post by: leon on April 08, 2008, 08:53:37 pm
-Wl,--rpath -Wl,<path>

worked for me.