From: carlson@kikkin.zko.dec.com (Tom Carlson)
Subject: Re: Using Template in DEC C++ Compiler
Date: 1996/03/11 [thread overview]
Message-ID: <4i22r2$ae8@zk2nws.zko.dec.com> (raw)
In-Reply-To: 4hts9j$msm@nntp.Stanford.EDU
In article <4hts9j$msm@nntp.Stanford.EDU>, Joshua Wai Ho Hui <wjhui@leland.Stanford.EDU> writes:
|>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.
Yes.
DEC C++ V5.1 does not support template auto-instantiation. Please
see the cxx man page for the -define_templates commandline switch.
Alternately, you could modify your source to add #pragma define_template
directives for each type of template to be instantiated.
i.e.,
#pragma define_template sort<int>
Starting DEC C++ V5.3 (currently in field-test), template auto-instantiation
is supported.
Tom
--
Thomas Carlson, DEC C/ DEC C++ carlson@decc.enet.dec.com
Digital Equipment Corporation, ZK2-3/N30
110 Spitbrook Rd,
Nashua, NH 03062
next parent reply other threads:[~1996-03-11 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4hts9j$msm@nntp.Stanford.EDU>
1996-03-11 5:00 ` Tom Carlson [this message]
1996-03-11 5:00 ` Using Template in DEC C++ Compiler Tim Lucia
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox