delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/04/15:10:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4228C16D.15D2F6CE@dessent.net>
Date: Fri, 04 Mar 2005 12:13:33 -0800
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: installing cygwin (for C++)
References: <61490 DOT 10 DOT 107 DOT 1 DOT 1 DOT 1109925568 DOT squirrel AT 10 DOT 107 DOT 1 DOT 1> <Pine DOT GSO DOT 4 DOT 61 DOT 0503041122190 DOT 15210 AT slinky DOT cs DOT nyu DOT edu> <42762 DOT 10 DOT 107 DOT 1 DOT 1 DOT 1109959056 DOT squirrel AT 10 DOT 107 DOT 1 DOT 1>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

arjun AT ee DOT iitb DOT ac DOT 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/

- Raw text -


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