Date: Tue, 18 Mar 2003 08:18:47 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: thomas8675309 AT yahoo DOT com Message-Id: <4634-Tue18Mar2003081847+0200-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com, alexvn AT bigfoot DOT com In-reply-to: <20030317201248.87975.qmail@web13002.mail.yahoo.com> (message from Thomas Tutone on Mon, 17 Mar 2003 12:12:48 -0800 (PST)) Subject: Re: gpp -pg : cannot find -lstdc++ References: <20030317201248 DOT 87975 DOT qmail AT web13002 DOT mail DOT yahoo DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Mon, 17 Mar 2003 12:12:48 -0800 (PST) > From: Thomas Tutone > > > "Alex Vinokur" wrote: > > > % gpp t0.cpp -g -pg > > > c:/djgpp/bin/ld.exe: cannot find -lstdc++ > > > collect2: ld returned 1 exit status > > > > > > What is wrong ? > > [And _I_ wrote:] > > > Use gxx, not gpp. gpp is just the preprocessor. > And > > take a quick look at the manual - it explains the > > difference between gcc, gpp, and gxx. > > Oops, don't know what I was thinking - cpp is the > preprocessor, not gpp. I have no idea why gpp didn't > work, but I do know that gxx works fine. Probably because of a bug in the ported gpp, which only shows up when linking with -pg (it should look for -lstdcxx, not -lstdc++). You could work around this by using "gcc" and manually adding C++ libraries on the link command line.