delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/20/21:08:59

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <836045 DOT 82708 DOT qm AT web33207 DOT mail DOT mud DOT yahoo DOT com> <476A726D DOT 50100 AT byu DOT net> <476A78EF DOT 2322FB0A AT dessent DOT net> <5hraHx3lQbDL092yn AT verizon DOT net>
Subject: RE: cygwin 1.5.25-7: cygcheck does not work?
Date: Fri, 21 Dec 2007 02:08:28 -0000
Message-ID: <047c01c84376$607436d0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <5hraHx3lQbDL092yn@verizon.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 20 December 2007 18:46, Jeff wrote:

> This is exactly why I have 'File Monitor' from Sysinternals on my
> system. Whenever I have an app that fails to start and produces some
> incomprehensible error message (relative to my setup, current state of
> my system, location of files, etc.), I run 'File Monitor' to see if the
> app is looking for libraries or other crucial files and not finding
> them. 

  FYI, cygcheck <path/to/exe> also does that.


> I've found very few apps that are able to tell the user when a library
> file is missing-- the SOP of just calling library functions from within
> your code and then linking against an import library includes, as far
> as I know, no mechanism to do that (unless, perhaps, it is somehow
> built into the library). In most cases, if the file is missing, it
> would seem that the results are undefined-- in my experience, though,
> the app usually exits with some sort of baffling error message.

  Yep.  It's a limitation of both the LoadLibrary() *and* the dlopen() function that
they can't tell you /which/ file was missing.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....	


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

- Raw text -


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