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 To: David Starks-Browning Cc: "Tejeswar" , Subject: Re: Regd. GNU installation References: <007101c13b5f$e3eb38e0$7909c80a AT wipro DOT com> <4020-Wed12Sep2001132710+0100-starksb AT ebi DOT ac DOT uk> From: Andrew Markebo Date: 12 Sep 2001 15:45:36 +0200 In-Reply-To: <4020-Wed12Sep2001132710+0100-starksb@ebi.ac.uk> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii / David Starks-Browning wrote: | On Wednesday 12 Sep 01, Tejeswara Kotthakota writes: | > Hi, | > | > I installed Cygwin on my Windows NT machine. I see that Cygwin comes with GCC 2.95.x. | > I wrote a small C++ program to test it. | > When I try, | > | > $gcc filename.cc | > | > it was giving following error, | > | > /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 | | You must use g++ to compile C++ programs, not gcc. No you don't.. gcc compiles c++-files ok, but it doesn't add the -liostream needed for a normal hello world.. Checking the archives it seems like the w32api package is missing. /Andy -- 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/