delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/20/19:07:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Wed, 20 Mar 2002 19:06:32 -0500
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gcc error: ld cannot find user32 (w32api package installed)
Message-ID: <20020321000632.GJ6552@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20020320232846 DOT 13305 DOT qmail AT cmsweb26 DOT cms DOT usa DOT net>
Mime-Version: 1.0
In-Reply-To: <20020320232846.13305.qmail@cmsweb26.cms.usa.net>
User-Agent: Mutt/1.3.23.1i

On Wed, Mar 20, 2002 at 03:28:46PM -0800, Luke J Crook wrote:
>>> From: "Edward M. Lee" <edward at tailifer dot com> 
>>> To: "'Jeremy Hetzler'" <felixmendelssohnn at earthlink dot net> 
>>> Date: Tue, 19 Mar 2002 22:42:38 -0500 
>
>>> Try removing the ./ from the w32api-1.2.1.tar.bz2 package, then
>>> reinstall.
>
>>> Or just tar -C / path/to/w32api-1.2.1.tar.bz2
>
>I don't understand. I'm having the same problem, and I installed Cygwin from
>scratch.
>
>A previous post suggested copying the contents of the /usr/lib/w32api into
>/usr/lib and /lib. This worked for me.

And, wasn't it mentioned that this was obviously the wrong solution?

The linker is supposed to be handling this.  It is handling it for
everyone else in the world, or rather gcc is.  gcc passes options
to 'ld' to find the files in /usr/lib/w32api.  If you invoke the
linker directly then you're on your own.  However, I'd suggest
using the -L option in this case.

You undoubtedly have something strange in your environment that is
causing a problem.  I would check the usual suspects like environment
variables or other versions of gcc/ld than the correct ones being in
your path.

This really should be a tremendously complex problem to track down.
Assuming that the cygwin setup is screwed up in such a basic way is
probably not the first step you should take in debugging your
problem.  It's much more likely that there is something screwed up
on your end.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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