Article View: gnu.gcc.help
Article #42860g++ and templates
From: yue-feng sun
Date: Mon, 30 Oct 1995 00:00
Date: Mon, 30 Oct 1995 00:00
17 lines
895 bytes
895 bytes
Hi, I have problems on using c++ templates with g++ compiler on Linux. I can use templates if the template declaration and its implementation are both in a single file. If I split the template into two files: a header file which contains the declaration and a file the implementation, I got link errors complaining undefined instantiations in the instantiation file. Any help will be greatly appreciated. Please send email to sunyf@ldeo.columbia.edu Yue-Feng Sun
Technical Details
Message-ID:
<9510302137.AA11414@brg0>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c73c511adaf7d17a,start X-Google-Attributes: gid11318c,public From: sunyf@lamont.ldgo.columbia.edu (yue-feng sun) Subject: g++ and templates Date: 1995/10/30 Message-ID: <9510302137.AA11414@brg0> X-Deja-AN: 118397433 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.help