From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114387,bc1296b3fed34d3 X-Google-Attributes: gid114387,public X-Google-Thread: 10ba33,bc1296b3fed34d3 X-Google-Attributes: gid10ba33,public X-Google-Thread: fee84,bc1296b3fed34d3 X-Google-Attributes: gidfee84,public From: Kevin Murphy Subject: Re: template separation Date: 1997/08/16 Message-ID: <33F609D1.6956@crl.dec.com>#1/1 X-Deja-AN: 264929562 References: <33E38F0F.436E@texas.net> Organization: DEC CRL Newsgroups: gnu.g++.help,comp.unix.osf.osf1,comp.unix.programming I have found that for template class definitions in g++, you must put the implementation in the .h file. For non-template classes, you must *not* put the definition in the .h file, otherwise you get multiple defns. For other compilers, like DEC CXX, you must not put the implementation in the .h file for any kind of class, unless it's inline. Kevin PS. Presumably you are using the guarded include trick? #ifndef FOO_H #define FOO_H header follows #endif