delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/20/09:37:04

Message-ID: <36A604A7.4091@arcticmail.com>
From: Nick J Chackowsky <nick AT arcticmail DOT com>
X-Mailer: Mozilla 3.04 (Win16; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP newbie goof...what did I do wrong?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990119114408 DOT 12893M-100000 AT is>
Lines: 32
Date: Wed, 20 Jan 1999 14:32:32 GMT
NNTP-Posting-Host: 142.13.16.203
X-Trace: typhoon.mbnet.mb.ca 916842752 142.13.16.203 (Wed, 20 Jan 1999 08:32:32 CDT)
NNTP-Posting-Date: Wed, 20 Jan 1999 08:32:32 CDT
Organization: MBnet Networking Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019