Message-Id: <37E9501D.3E95D5EA@mail.retina.ar> Date: Wed, 22 Sep 1999 18:54:39 -0300 From: "Leonardo A. Saravia" X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en Mime-Version: 1.0 To: djgpp AT delorie DOT com Subject: DJGPP 2.95 Templates Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Hi, I think that I have a problem related to template instantiation, the following code : // FILE smat.h template class smat { ... } // FILE rwfile.h and rwfile.cpp #include "smat.h" class rwfile { ... template int read( smat data); ... } // FILE main.cpp #include "smat.h" #include "rwfile.h" int main() { smat dint; read(dint); } compiles without problems, but the linker reports (I am using a RHIDE 1.4.7 project): Error undefined reference to int rwfile::read( smat ) any ideas? Thanks -- Leonardo A. Saravia - Programa de Ecologia Matematica Universidad Nacional De Lujan - C.C. 221 - (6700) - Lujan - Argentina Tel: 54 2323 423171/421030 Fax: 54 2323 425975 e-mail: lsaravia AT mail DOT retina DOT ar