www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/15/14:11:31

Date: Wed, 15 Mar 1995 12:35:53 -0500
From: "Neil L. Fluhr ; BS CMSC" <nfluhr1 AT gl DOT umbc DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Does DJGPP support C++ templates?

I am trying to use a List template class and I keep getting:

   "undefined reference List<int>::Insert()"
   "undefined reference List<int>::First()"

    ...and so on for every List function that is called in my client
       program. 

I am using my own list implementation (not the one included with DJGPP). I 
have my List template class declaration in my header file (list.h) and the
implementation in my list.cc file. My client program is in its separate  
file (intlist.cc).

I have tried the -v switch and the above output only occurs after the linker
is called.

Any ideas? Please send responses to my e-mail address <nfluhr1 AT gl DOT umbc DOT edu>
as I do not subscribe to the mailing list.

Thanks in advance!
Neil

- Raw text -


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