delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/13/01:15:29

From: "Paul Derbyshire" <pderbysh AT usa DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <gufY.2325$Ni2 DOT 1485828 AT news21 DOT bellglobal DOT com>
Subject: Re: Braindead linker?
Lines: 13
MIME-Version: 1.0
Message-ID: <Z3hY.2414$Ni2.1557179@news21.bellglobal.com>
Date: Mon, 13 Apr 1998 05:07:05 GMT
NNTP-Posting-Host: 206.172.244.227
NNTP-Posting-Date: Mon, 13 Apr 1998 01:07:05 EST
Organization: Bell Solutions
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Worse, there appears to be an outright error in the G++ FAQ, which I just
searched high and low for a solution to my template problems:

"GNU ld (2.8 or later) ... will automatically remove duplicate instantiations
of templates ..."

ld 2.8.1 evidently does not. Use of rope<char> in two .cc files leads to
multiple definition link errors on a number of rope-related variables and
functions, such as that list of Fibonacci numbers in a "max_len" array in
ropeimpl.h.



- Raw text -


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