cyg*.dll, linking

Warren Young warren@etr-usa.com
Tue Dec 13 20:33:00 GMT 2011


On 12/13/2011 12:18 PM, Brian Craft wrote:
> On Tue, Dec 13, 2011 at 11:16 AM, Csaba Raduly  wrote:
>> On Tue, Dec 13, 2011 at 7:45 PM, Brian Craft  wrote:
>>
>>> And why don't I see cyg*.dll files, for example, in /usr/lib?
>>
>> They are all hiding under /usr/bin :)
>
> Ah! I see. So the install is working fine, I was just adding the wrong
> directory to PATH, having no idea that libraries would be installed
> under ${prefix}/bin. :)

...and that is on purpose, because of Windows' DLL search path rules:

	http://msdn.microsoft.com/en-us/library/7d83bc18.aspx

If autotools generated Makefiles that installed DLLs in /usr/lib, you'd 
have to add c:\cygwin\lib (or whatever) to the PATH, and then risk being 
sent to DLL Hell by having another DLLs with the same name elsewhere in 
the PATH.

--
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



More information about the Cygwin mailing list