delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/12/08:27:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 12 Sep 2001 13:27:10 +0100
Message-ID: <4020-Wed12Sep2001132710+0100-starksb@ebi.ac.uk>
X-Mailer: emacs 20.7.1 (via feedmail 9-beta-7 I);
VM 6.92 under Emacs 20.7.1
From: David Starks-Browning <starksb AT ebi DOT ac DOT uk>
MIME-Version: 1.0
To: "Tejeswar" <tejeswara DOT rao AT wipro DOT com>
Cc: <cygwin AT cygwin DOT com>
Subject: Regd. GNU installation
In-Reply-To: <007101c13b5f$e3eb38e0$7909c80a@wipro.com>
References: <007101c13b5f$e3eb38e0$7909c80a AT wipro DOT com>

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.

Hope this helps.

Regards,
David
(Cygwin FAQ maintainer)


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019