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