X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Lilja <mindcooler@gmail.com>
Subject:  Re: Make program find its dll:s
Date:  Tue, 18 Nov 2008 13:05:02 +0100
Lines: 28
Message-ID: <gfub1e$bg4$1@ger.gmane.org>
References:  <gfu7qd$v3$1@ger.gmane.org> <20081118112012.GB26249@tomas> 	<gfu93e$560$1@ger.gmane.org> <20081118124859.zfzlhv3wisw4sg88@webmail.df.eu>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
In-Reply-To: <20081118124859.zfzlhv3wisw4sg88@webmail.df.eu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Markus Hoenicka wrote:
> 
> Although this is nothing specific to Cygwin: If you want to make the 
> variable value available to processes which are executed subsequently, 
> you need to export the variable, not just set it, as in:
> 
> export LD_LIBRARY_PATH=/path/to/dll-files
> 
> Alternatively, set the variable in the command line like this:
> 
> LD_LIBRARY_PATH=/path/to/dll-files foo
> 
> assuming that "foo" is the command to start the app which requires the dll.
> 
> regards,
> Markus
> 

Thanks Markus, this was very useful information which I will benefit 
from from now on! Unfortunately, it didn't actually help the process to 
find the DLL files but doing:
$ PATH=$PATH:/path/to/myDLLS foo
does work. I guess LD_LIBRARY_PATH cannot be used for what I was trying 
to do. Oh, btw, to those who mail me copies of mails sent to the list. 
It's not necessary, I'm interacting with the list through gmane, set-up 
as a newsgroup under my email-client. :)

- Eric


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

