This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Linking to cygwin1.dll
- From: Manoj Joseph <manoj dot joseph at delphix dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 21 Jan 2015 12:13:25 -0800
- Subject: Re: Linking to cygwin1.dll
- Authentication-results: sourceware.org; auth=none
- References: <CABOphHkjbOQmT85ehBKvJ6A4EAjLpN0BWrWX+WymQvKFexpgog at mail dot gmail dot com> <54C00217 dot 8040000 at delphix dot com>
Never mind. My bad. Looks like the directory from which the application
loaded is indeed a location where Windows looks.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx#standard_search_order_for_desktop_applications
Apologies for the noise!
Regards,
Manoj
On 1/21/15 11:46 AM, Manoj Joseph wrote:
> Hi,
>
> As I understand, Windows looks for DLLs in $PATH. Is there any way to
> specify, perhaps at compile time, that cygwin1.DLL is to be located in
> the same directory as the binary?
>
> Doing this would mean I don't have to modify environment variables or
> copy cygwin1.DLL to one of the system directories.
>
> Regards,
> Manoj
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple