Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4228C16D.15D2F6CE@dessent.net>
Date: Fri, 04 Mar 2005 12:13:33 -0800
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: installing cygwin (for C++)
References: <61490.10.107.1.1.1109925568.squirrel@10.107.1.1> <Pine.GSO.4.61.0503041122190.15210@slinky.cs.nyu.edu> <42762.10.107.1.1.1109959056.squirrel@10.107.1.1>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

arjun@ee.iitb.ac.in wrote:

>  Thanks a lot for the reply.I installed everything in the "Devel" category.
>  However,when I try to compile a cpp file using "g++ filename.cpp" Iam
> getting the following error:
> 
>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
> cannot
> find -luser32
> collect2: ld returned 1 exit status
> 
>  can you plz help me out with this.

As the package search reveals (try using it!) you need the w32api
package.

However, this package is listed as a dependency of gcc so it should have
been selected when you selected gcc.  Perhaps you used setup in such as
way as to override its choices, which is not a good idea.  If setup
picks packages that you think you don't need when you select something
that you do need, keep those selections.

Brian

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

