Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » eclipse and LD_LIBRARY_PATH
eclipse and LD_LIBRARY_PATH [message #182930] Wed, 24 January 2007 13:03 Go to next message
Eclipse User
Originally posted by: me.knoware.nl

Hi,

I have a project which create a shared library. In another project I build a
binary which uses the shared library. I have set the LD_LIBRARY_PATH
environment variable to point to the location of my shared libraries. The
LD_LIBRARY_PATH is exported when I logon on my linux box. Somehow eclipse
does not know about the LD_LIBRARY_PATH environmetn variable. Does anyone
know a solution for this. Is there a way to import the environment variables
in eclipse. I do not want to set these variables for all projects in the
run/environment tab.

thanks a lot

John
Re: eclipse and LD_LIBRARY_PATH [message #182962 is a reply to message #182930] Wed, 24 January 2007 20:09 Go to previous message
Ray Hurst is currently offline Ray Hurst
Messages: 121
Registered: July 2009
Senior Member
John,
I'm not familiar with how you do it in a managed make project.
In a Standard Make project, I think you do it this way:

Right click your project.
Select properties->C/C++ Include Paths and Symbols
In the dialog box press the button Add Preprocessor Symbol...
Add your compiler -I $(LD_LIBRARY_PATH) here.
I think I did that right. Let me know.
Ray

Bruintje Beer wrote:
> Hi,
>
> I have a project which create a shared library. In another project I build a
> binary which uses the shared library. I have set the LD_LIBRARY_PATH
> environment variable to point to the location of my shared libraries. The
> LD_LIBRARY_PATH is exported when I logon on my linux box. Somehow eclipse
> does not know about the LD_LIBRARY_PATH environmetn variable. Does anyone
> know a solution for this. Is there a way to import the environment variables
> in eclipse. I do not want to set these variables for all projects in the
> run/environment tab.
>
> thanks a lot
>
> John
>
>
Previous Topic:Trim trailing spaces
Next Topic:AIX5.3 C/C++ Program is not a recognized executable.
Goto Forum:
  


Current Time: Thu Aug 28 09:30:02 EDT 2014

Powered by FUDForum. Page generated in 0.07283 seconds