User forums > Help

No -R flag, how to set runtime search path?

(1/1)

Clash:
Hello!
How do I set the search path for the shared libraries at runtime? I don't want it to look only at /usr/lib
I'm on ubuntu and I can't find the envVar plugin on code::blocks 8.02
Thanks in advance!

Jenna:

--- Quote from: Clash on September 02, 2009, 11:22:18 pm ---Hello!
How do I set the search path for the shared libraries at runtime? I don't want it to look only at /usr/lib
I'm on ubuntu and I can't find the envVar plugin on code::blocks 8.02
Thanks in advance!

--- End quote ---

You can set any linker parameters in your projects build options (tab "Linker settings -> Other linker options:").
In your case you should try :

--- Code: ----Wl,-rpath=<lib-path>
--- End code ---

Clash:
Thanks for the swift reply! It worked! :D

oBFusCATed:
Also you can use the LD_LIBRARY_PATH env variable

Navigation

[0] Message Index

Go to full version