Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » -Wl, -rflags not being passed correcly to G++
-Wl, -rflags not being passed correcly to G++ [message #1693248] Wed, 22 April 2015 16:02
Renato Mendes is currently offline Renato MendesFriend
Messages: 1
Registered: April 2015
Junior Member
Hi,

I want to add a rpath to my executables to look locally for the shared library in order to avoid using the LD_LIBRARY_PATH in my environment.

To do it I need the following flags at the g++ compiler

-Wl,-rpath=/home/myself/lib

So, I went to Project->Properties->C/C++Build->Settings->GCC C++ Compiler->Miscellaneout and on 'Other Flags':

OtherFlags -> -c -f-messge-length= -Wl,-rpath=/home/mylibs

That was supposed to work, but when I build I get an error, as Eclipse is passing the arguments with spaces to g++:

g++ .... -Wl,<SPACE>-rpath =/home/mylibs ...

on that way, g++ says it can´t recognize the -rpath path....

Is there a workaround for this ??? Any help appreciated.
Previous Topic:content assist in classes for members declared below
Next Topic:Sharing a workspace between eclipse 32 and 64
Goto Forum:
  


Current Time: Fri Apr 26 18:13:23 GMT 2024

Powered by FUDForum. Page generated in 0.03801 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top