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-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: "Tomasz Rojek" Subject: Re: Error message when compling simple program, help please :) Date: Wed, 11 Jun 2003 23:03:04 +0200 Lines: 21 Message-ID: References: X-Complaints-To: usenet AT main DOT gmane DOT org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 > I am using the following command: > > $ 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 Hi Max, I would advise you to go thru the archive. There you can find a simplest syntax how to compile a C program using gcc on Cygwin. In shorter way - below syntax creates desired binary (at least for me :) gcc 02l01.c -o 02l01.exe so you have to specify output binary file and that's all ;-) Greetings -- Tomasz Rojek -- 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/