Make program find its dll:s

Eric Lilja mindcooler@gmail.com
Tue Nov 18 12:06:00 GMT 2008


tomas@tuxteam.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/



More information about the Cygwin mailing list