From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,66ae69e4f2ef51b0 X-Google-Attributes: gidfee84,public From: Tim Lucia Subject: Re: Using Template in DEC C++ Compiler Date: 1996/03/11 Message-ID: <31448040.FF6@zko.dec.com>#1/1 X-Deja-AN: 142743334 references: <4hts9j$msm@nntp.Stanford.EDU> to: Joshua Wai Ho Hui content-type: text/plain; charset=us-ascii organization: CTG mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha) Joshua Wai Ho Hui wrote: > > Hi, > > I try to compile my program which has template class declaration using > DEC C++ Compiler for DEC OSF. However, it always complaint that the functions > are not found when doing the linking. > > Should I need to do something extra in order to make it work? > > Joshua You need to define templates explicitly by saying #pragma define_template ..., e.g. #pragma define_template RWTPtrSlist will define the template class RWTPtrSlist Regards, Tim -- Timothy J. Lucia Email: mailto:lucia@zko.dec.com Digital Equipment Corporation Phone: 603.881.2615 110 Spitbrook Road ZK2-3Q08 Fax: 603.881.0120 Nashua, NH USA 03062-2698 I'd rather be cycling.