From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7738f35f068ac5fc,start X-Google-Attributes: gidfee84,public From: Sam Dooley Subject: problem with building templates on OSF Date: 1998/09/10 Message-ID: <35F8139A.49CAB9F9@watson.ibm.com>#1/1 X-Deja-AN: 389822416 Content-Transfer-Encoding: 7bit Organization: IBM Microelectronics Division Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 I need to build an application that uses templates on OSF 4.0. I want the instantiation of the template objects done in a repository, and only 1 copy of each object is created, instead of being instantiated in all the object files that need it (which will result in multiple copies of each object being created and the size of the object files get huge). It is the new cxx compiler that I am using. I tried the flags described in the documentation. If I do specify a repository (by -ptr directory), instantiation is done both in the repository and object files, resulting in multiple copies. But if I don't, no instantiation is done. In other words, I eigher get multiple copies or none. I wonder if any of you know the right way to do it? Also, the new cxx compiler does compile time instantiation. Is there any way for the new cxx compiler to do link time instantiation? Thanks!