Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
x-mimeole: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: RE: Error message when compling simple program, help please :)
Date: Wed, 11 Jun 2003 12:37:55 -0400
Message-ID: <3D848382FB72E249812901444C6BDB1D0130D981@exchange.timesys.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
From: "Robb, Sam" <sam.robb@timesys.com>
To: <cygwin@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h5CK6GX08613

> $ gcc 02l01.c
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin
> /bin/ld: 
> cannot find -luser32
> collect2: ld returned 1 exit status
> 
> I have no idea what to do now. I searched google for help but 
> i didn't find anything referring specifically to the -luser32
> error.  If someone could help me out I'd really appreciate it :)
> 
> Thanks to all who reply

Max,

  You can use http://cygwin.com/packages/ to find out which
Cygwin package provides a particular file.

  In your case, the "-luser32" switch to GCC is telling it to
link to a library named "libuser32".  Using the package search
page, you can find out that libuser32 is provided by:

  w32api/w32api-2.2-1	Win32 API header and library import files

  So - did you install the w32api package?

  BTW - general development questions are generally not appropriate
fot this list, unless they're specific to Cygwin.

-Samrobb

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

