X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <836045.82708.qm@web33207.mail.mud.yahoo.com>  <476A726D.50100@byu.net> <476A78EF.2322FB0A@dessent.net> <5hraHx3lQbDL092yn@verizon.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
Content-Type: text/plain; 	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <5hraHx3lQbDL092yn@verizon.net>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

