X-Spam-Check-By: sourceware.org
Date: Sat, 11 Feb 2006 15:38:54 -0500 (EST)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Nitin Mathur <nitinm@kyocera-wireless.com>
cc: cygwin@cygwin.com
Subject: Re: Need Help
In-Reply-To: <F1B0448BE7E53A49AF81E306BE4AB92301BFCEDB@kwisrv3.kwi.intra.kyocera-wireless.com>
Message-ID: <Pine.GSO.4.63.0602111519390.14422@access1.cims.nyu.edu>
References: <F1B0448BE7E53A49AF81E306BE4AB92301BFCEDB@kwisrv3.kwi.intra.kyocera-wireless.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
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

On Sat, 11 Feb 2006, Nitin Mathur wrote:

> Hi,,
>
> I am sorry for sending the previous post without any message. It was
> sent by mistake.
>
> I am facing a small problem. I have gcc 2.95 installed on my machine. I
> cannot download the latest version or any other version of cygwin and
> gcc because these are my company requirements. I have to work on this
> version of gcc
>
> When I try to compile any cpp file, the linker throws an error "cannot
> find -lstdc++".
>
> I tried to search the complete cygwin directory for the library. I could
> find "libstdc++.a.2.10.0". I tried to rename this as stdc++.a but failed
                                                       ^^^^^^^^
> in my attempt to get the file linked.

The name you chose is wrong; -lstdc++ will look for a file named
"libstdc++.a", not "stdc++.a".  But this is unlikely to work in any case,
since the above library does not come from the gcc2 Cygwin package.
Looks like your version of gcc2 is screwed up.

> Can anybody help me in this regard ? I shall be really grateful.
>
> I have attached the error message below the mail.
>
> Best regards,
> Nitin Mathur,
>
> C:\TEMP>g++ c3.cpp -Wall
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../i686-pc-cygwin/bin/ld: cannot find -lstdc++
> collect2: ld returned 1 exit status

Start here:

> Problem reports:       http://cygwin.com/problems.html

Please pay particular attention to the part that talks about message
subjects and the part that asks you to attach (as an uncompressed text
attachment) the output of "cygcheck -svr" on your machine.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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

