This is the mail archive of the
mailing list for the Cygwin project.
RE: Error message when compling simple program, help please :)
- From: "Robb, Sam" <sam dot robb at timesys dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 11 Jun 2003 12:37:55 -0400
- Subject: RE: Error message when compling simple program, help please :)
> $ gcc 02l01.c
> 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
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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html