From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2cc8c4ed890dcb48,start X-Google-Attributes: gidf7344,public X-Google-Thread: 109fba,2cc8c4ed890dcb48,start X-Google-Attributes: gid109fba,public X-Google-Thread: 1164f8,2cc8c4ed890dcb48,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-12-16 07:45:31 PST Xref: gmd.de comp.sys.dec:12434 comp.lang.c++:40741 comp.os.vms:37246 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!cs.utexas.edu!uunet!charon.citicorp.com!ibism!ghica From: ghica@fig.citib.com (Ghica) Newsgroups: comp.sys.dec,comp.lang.c++,comp.os.vms Subject: TEMPLATES and DEC C++ compiler Date: 14 Dec 1993 15:46:56 -0500 Organization: Citibank IBISM Distribution: world Message-ID: <2el8o0$f7@duck.fig.citib.com> NNTP-Posting-Host: duck.fig.citib.com We recently got the DEC C++ compiler (v1.2), and are trying to determine its usability vis-a-vis templates. It seems that to use any templates (when class definitions and functions are in different files), one has to always use #pragma define_template (So if you're going to have a myList, you would need to add #pragma define_template myList) or else the template does not get instantiated and the linker complains about unknown symbols. I've tried the /INSTATIATE qualifier with no luck. The forced use of this pragma makes porting multi-platform library code from other platforms a nightmare. Is there anyone out there using DEC C++ in a template environment? If yes, could you share some tips with me about using template with DEC C++ in the least painful way? If there's no one using DEC C++, could you share with me which VMS/C++ compiler you are using? thanks for your help, -rg