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 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" To: 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/