Mail Archives: djgpp/1999/01/20/09:37:04
Eli Zaretskii wrote:
> On Mon, 18 Jan 1999, Andy Juell wrote:
> > c:\djgpp\bin\ld.exe: cannot open -lstdcxx: No such file or directory
> > (ENOENT)
> > I unzipped ALL the files in the appropriate distribution, and found
> You are missing the explanations in section 8.7 of the FAQ. The
[snip snap]
But wait... I'd been going absolutely NUTS for about a week with this
same issue, and I read and re-read the FAQ til I was red eyed. When I
resolved the stdcxx problem, iostream wouldn't link (unresolved
references to everything under the sun). *FINALLY* found the problem,
and perhaps this ought to be included in the FAQ:
IF you're also installing gnu Pascal (gpc20b.zip), it adds its own
version of libgcc.a to djgpp\lib, and it's considerably out of date.
My solution was to copy the djgpp distribution of libgcc.a from it's
directory (considerably further down the directory tree) back to
...\lib
for Pascal to see. Now both are happy.
Nick.
> argument -lstdcxx passed to the linker instructs it to look for a
> library libstdcxx.a in the C:\DJGPP\LIB directory. If this file is
> not found, the linker then falls back to looking for a file -lstdcxx
> verbatim (since such file names are possible), which also fails.
>
> But the real problem is that it cannot find libstdcxx.a; section 8.7
> explains how to fix that.
- Raw text -