Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Fri, 3 Sep 2004 23:24:46 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: how to link without libutil.so? [repost]
Message-ID: <20040904032446.GA18306@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <chb8ej$enb$1@sea.gmane.org> <20040904023518.GA17453@trixie.casa.cgf.cx> <chbc5e$kch$1@sea.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <chbc5e$kch$1@sea.gmane.org>
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/

