Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <5.1.0.14.2.20010905161244.02827b20@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 05 Sep 2001 16:14:51 -0700 To: m_shanmugasundaram DOT cgmaersk AT maerskdata DOT dk, cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: GCC- Doubt In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Shan, I imagine you did not install all of Cygwin. With my full and current install, your program, copied directly from your post, compiles without complaint and executes exactly as expected. Randall Schulz Mountain View, CA USA At 02:57 2001-09-05, m_shanmugasundaram DOT cgmaersk AT maerskdata DOT dk wrote: >Hi , > >I downloaded and installed the cygwin today. When i tried to compile the >simple hello.c program the following error occured. please help me. > >The program is: > >#include >int main() >{ > printf("Hello world\n"); > return 0; >} > >The error reported is: > >$gcc -o hello hello.c >/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 > >Cheers >Shan -- 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/