Xref: news-dnh.mv.net comp.os.msdos.djgpp:2592 Path: news-dnh.mv.net!mv!news.sprintlink.net!newsserver.pixel.kodak.com!bloom-beacon.mit.edu!newsfeed.internetmci.com!usenet.eel.ufl.edu!afn24681 From: afn24681 AT afn DOT org (Joseph B. Ottinger) Newsgroups: comp.os.msdos.djgpp Subject: Re: Template support Date: 12 Oct 1995 10:39:39 GMT Lines: 42 References: <45arp8$e48 AT concorde DOT ctp DOT com> Nntp-Posting-Host: freenet4.afn.org To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp Patrick Draper (pdrap AT ctp DOT com) wrote: : Hi, : 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? Did you define the list members externaly to the class? I had trouble doing the exact same thing under V2.. and Watcom C/C++ 10.0, too. Moving the template methods to the class definition straightened things up. : BTW, if anyone wants the class, they can have it for free. I looked around : on the WWW for quite a while for public domain code, but everything is : shareware! So, I wrote a simple one myself, and I intend to make it totally : public domain. Bravo! I'm trying to do the same for a graphics library, that uses a planar architecture, so the graphics programmer doesn't have to concern himself with whether an image is foreground/background or not. (i.e., there are four planes; 0 is farthest back, so it's appropriate for background images; 3 is farthest up, so it's appropriate for status displays and scores, etc.) Along with the library there's a C++ fixed-point class, single-linked lists (no need for doubly-linked lists yet), and I'm working on adding red-black b-tree support so 3d z-ordering will be wasy to support (although red-black trees are handy to have around ANYWAY). BTW, if anyone's interested in this, e-mail me; I can send you the current version (unnumbered as of yet; too many holes still!) It uses DJGPP V2 beta 3; it comes with three demo programs so far; needs image blitting routines and polygon draws and fills. (Any takers? :) It's using VGA Mode 13h, quite passe, but I'd have to write a smart routine to go to Mode X and I'm not ready for it yet. Four things at a time, please! :)