Mail Archives: djgpp/1995/10/10/11:05:13
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 -