Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 3 Sep 2004 23:24:46 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: how to link without libutil.so? [repost] Message-ID: <20040904032446.GA18306@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20040904023518 DOT GA17453 AT trixie DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Fri, Sep 03, 2004 at 11:18:06PM -0400, Andrew Schulman wrote: >>>/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: >>>cannot find -lutil >> >>As you noted, the file doesn't exist in the cygwin distribution. It's >>possible that you could just get by with removing it from the link line >>entirely since it looks like most of the functions in this library are >>in cygwin1.dll. > >No, I tried that already. You said that you tried linking libcygwin.a to libutil.a but that is not necessarily going to work. >The link still fails. "the link still fails" provides almost zero useful information. You certainly didn't get the same "cannot find -lutil" error message when you tried this. Since Corinna went to some effort to add libutil functionality to the cygwin DLL a while ago and since I can't see any functions in libutil.so which are missing from cygwin1.dll, I don't see why this didn't work. cgf -- 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/