ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/10/11:05:13

Xref: news-dnh.mv.net comp.os.msdos.djgpp:2532
Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!uunet!in1.uu.net!genmagic!goonsquad.spies.com!uuwest!alcyone!max
From: max AT alcyone DOT darkside DOT com (Erik Max Francis)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Template support
Date: Mon, 09 Oct 95 10:30:04 PDT
References: <45arp8$e48 AT concorde DOT ctp DOT com>
Organization: &tSftDotIotE
Lines: 24
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

pdrap AT ctp DOT com (Patrick Draper) writes:

> I'm running DJGPP version 1.12 maint3 with gcc 2.6.3 and I have written a
> small linked list class that uses templates.
> 
> The class compiles just fine, but when I try to link it with a test
> program, the linker can't find any symbols that are in the linked list
> class.
> 
> Is there a special trick to get everything to link? Does the version of
> DJGPP that I have support templates? Will the beta version of DJGPP support
> templates better?

I had this same question too when starting to use templates, and the 
scenarios and options are discussed at length in the info section on g++. 
Check it out and it should answer all of your question.  (I personally 
use the explicit instantiation technique -- discussed there -- and it 
works well for me.)


Erik Max Francis, &tSftDotIotE // uuwest!alcyone!max, max AT alcyone DOT darkside DOT com
San Jose, CA, USA // 37 20 07 N  121 53 38 W // GIGO, Omega, Psi // the 4th R!
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- // 1love // folasade
_Omnia quia sunt, lumina sunt._ // mc2? oo?  Nah. // http://www.spies.com/max/

- Raw text -


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