Skip to main content


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 18:03 Go to next message
Eclipse UserFriend
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] Thu, 25 January 2007 01:09 Go to previous message
Ray Hurst is currently offline Ray HurstFriend
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: Mon Sep 23 04:02:32 GMT 2024

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

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

Back to the top