Author Topic: using rpath[solved]  (Read 9437 times)

Offline leon

  • Single posting newcomer
  • *
  • Posts: 4
using rpath[solved]
« 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.
« Last Edit: April 08, 2008, 08:54:01 pm by leon »
Glass Arcade, Tauntonions
Noli illegitimi carborundum

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: using rpath
« Reply #1 on: April 08, 2008, 05:54:03 pm »
Try "--Wl,-rpath,<pathname>".
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline leon

  • Single posting newcomer
  • *
  • Posts: 4
Re: using rpath
« Reply #2 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.
Glass Arcade, Tauntonions
Noli illegitimi carborundum

Offline leon

  • Single posting newcomer
  • *
  • Posts: 4
Re: using rpath
« Reply #3 on: April 08, 2008, 08:53:37 pm »
-Wl,--rpath -Wl,<path>

worked for me.
Glass Arcade, Tauntonions
Noli illegitimi carborundum