This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make program find its dll:s

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.


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: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]