X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Lilja Subject: Re: Make program find its dll:s Date: Tue, 18 Nov 2008 12:31:58 +0100 Lines: 26 Message-ID: References: <20081118112012 DOT GB26249 AT tomas> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <20081118112012.GB26249@tomas> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com tomas AT tuxteam DOT de wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, Nov 18, 2008 at 12:10:02PM +0100, Eric Lilja wrote: >> [...] I'm now wondering if it's possible to tell a >> process launched from within a cygwin bash shell to "look in this directory >> as well for DLL files you might need [...] > > The environment variable LD_LIBRARY_PATH is said to work in Cygwin as > well. So setting it to a list of directories where to look for DLLs > might do the trick. Dunno whether colon-separated (UNIXy) semi-colon > separated (DOSy). Hi Tomás and thanks for the quick reply. I tried setting LD_LIBRARY_PATH using $ LD_LIBRARY_PATH=/path/to/dll-files (and then checking with $ echo LD_LIBRARY_PATH that it "stuck"), but the process still cannot find the DLL files. I am starting the process with strace so I am sure this is the problem, not something else. I guess I could temporarily modify the PATH but I'm interested in alternatives. > > Regards > - -- tomás - 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/