error ld: cannot find -luser32

Larry Hall (RFK Partners, Inc) lhall@rfk.com
Tue Jul 23 09:22:00 GMT 2002


At 07:23 PM 7/23/2002, Armin Zeltner wrote:

>hi folks
>
>downloaded current cygwin
>starting gcc i receive the following error:
>$ gcc main.c -o main.exe
>/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32
>collect2: ld returned 1 exit status
>
>
>Any suggestions?
>
>I'm novice in cygwin!
>
>Please send the answer additionally to me with CC, because I'm not subscribed.


Hello Armin,

A good place to start with questions like these is the FAQ and email list
archives.  The archives, at least, is replete with postings on this issue.
However, to answer your question directly, you need to install the w32api
package.  Rerun setup and do so.

Good luck,



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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



More information about the Cygwin mailing list