Message-Id: <199801091940.GAA17804@mona.lexicon.net.au> From: "John Machin" To: Eli Zaretskii , djgpp AT delorie DOT com Date: Sat, 10 Jan 1998 06:37:41 +1000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Book "Practical C++ Programming" / examples / DJGPP format References: <199801042040 DOT HAA23345 AT mona DOT lexicon DOT net DOT au> In-reply-to: Precedence: bulk On 5 Jan 98 at 10:44, Eli Zaretskii wrote: > > On Mon, 5 Jan 1998, John Machin wrote: > > > Here's the (very minor) FAQ bug: > > > > > The Standard C++ Template classes are in `libstdcx.a' (it's called > > > `libstdc++.a' on Unix); append `-lstdcxx.' > > ^ > > That's not a bug, that's a feature ;-). > > Seriously, though, the names libstdc++.a and libstdcxx.a exceed the > DOS 8+3 limits. When gcc sees -lstdcxx it generates the name > libstdcxx.a and instructs the linker to look for it. DOS silently > truncates that name into libstdcx.a, and everything works. Thanks. I should have realised that. I must have had a typo somewhere --- I thought I'd typed gcc ..... -lstdcxx and the linker didn't find some references; that's why I was reading the fine print in the FAQ and then found that -lstdcx did work. Sorry to have bothered you; at least I did RTFFAQ first! Regards, John Machin 1/27 Auburn Grove Hawthorn East, VIC 3123, Australia Phone: +61-3-98130561