Message-ID: <20030318172804.60799.qmail@web13004.mail.yahoo.com> Date: Tue, 18 Mar 2003 09:28:04 -0800 (PST) From: Thomas Tutone Subject: Re: gpp -pg : cannot find -lstdc++ To: djgpp AT delorie DOT com Cc: eliz AT elta DOT co DOT il In-Reply-To: <4634-Tue18Mar2003081847+0200-eliz@elta.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 --- Eli Zaretskii wrote: > > 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. Thanks, Eli - I thought it was something like that. But that leaves open the question of what the difference is between gxx.exe and gpp.exe. I had understood - mistakenly, I guess - that they were equivalent. But the OP's example shows this is not the case - adding the -pg command line argument causes a diagnostic with gpp.exe, but not gxx.exe. And when I look in my bin directory, gxx.exe has a last-modified date of 12/24/2001 and a size of 81K, while gpp.exe has a last-modified date of 11/27/2002 and a size of 160K. So they are clearly not the same. Is gxx.exe an artifact of an earlier version of djgpp that never got updated? Or is there a more basic difference between the gpp.exe and gxx.exe that I should be aware of? (I'm using gcc version 3.21, and did a new clean install of the latest versions of everything in djgpp in December after deleting my then-existing install in its entirety.) Can someone enlighten me? Best regards, Tom __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com