delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/13/15:33:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4EE7B669.8030707@etr-usa.com>
Date: Tue, 13 Dec 2011 13:32:41 -0700
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Re: cyg*.dll, linking
References: <CAGVbXL7YGp-WsEx4QooOCX_44GB2gx_C5hNBKkGbXXT_y3zTEg AT mail DOT gmail DOT com> <4EE7987B DOT 8030208 AT cs DOT utoronto DOT ca> <CAGVbXL6772ds2XcDyJuz9PB76h4Crv_S1RmgF3RATcqcvTm_zA AT mail DOT gmail DOT com> <CAEhDDbAdmFF4Ho522q2Y82wiRHzG9BW6uwWbQv7kKLaLf5oFSA AT mail DOT gmail DOT com> <CAGVbXL51st2a++pHpkHRVYuJsJ1n7HyhQNSxta0rA260sAGi6A AT mail DOT gmail DOT com>
In-Reply-To: <CAGVbXL51st2a++pHpkHRVYuJsJ1n7HyhQNSxta0rA260sAGi6A@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019