delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/12/16:06:17

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
x-mimeole: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
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 DOT robb AT timesys DOT com>
To: <cygwin AT cygwin DOT com>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019