Mail Archives: djgpp/2003/03/18/01:24:51
> Date: Mon, 17 Mar 2003 12:12:48 -0800 (PST)
> From: Thomas Tutone <thomas8675309 AT yahoo DOT com>
>
> > "Alex Vinokur" <alexvn AT bigfoot DOT com> 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.
- Raw text -