From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7738f35f068ac5fc X-Google-Attributes: gidfee84,public From: Ken Block USG Subject: Re: problem with building templates on OSF Date: 1998/09/11 Message-ID: <35F95F73.845E4542@zk3.dec.com>#1/1 X-Deja-AN: 390186180 Content-Transfer-Encoding: 7bit References: <35F8139A.49CAB9F9@watson.ibm.com> Content-Type: text/plain; charset=us-ascii Organization: CTG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 The default behavior of the compiler is to instantiate the templates in the repository with only one copy. The behavior you are describing might be a known bug in the compiler or a user error. It is hard to tell which it is without seeing what you are doing. One thing to be sure of , don't declare any non-template variables in a template implementation file. Read the documentation on implicit inclusion to understand how the template implementation file gets included automatically in your source module when it is needed. If you are sure you are doing everything right, it is possible you have hit a bug that causes the compiler to drop templates into the object instead of the repository. It is hard to describe what causes this, but the used of unused static variables to hold identification strings for RCS or SCCS was the most common. We have already fixed this bug and the new compiler has been given to manufacturing and will be released on 10/9/98. The current v6.1 compiler (to be released 10/9/98) only does run-time instantiations. We are investigating adding link line instantiation to v6.2.