This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Template trouble
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: gcc-help at gcc dot gnu dot org
- Cc: Greg Davey <mailforroot at turbodiesel360 dot cjb dot net>
- Date: 26 Jun 2003 17:22:33 -0700
- Subject: Re: Template trouble
- References: <1056653571.29994.40.camel@davey-world.cjb.net>
Greg Davey <mailforroot@turbodiesel360.cjb.net> writes:
> When trying to compile a templatized program, I receive many undefined
> reference errors. I would appreciate any help.
[snip]
You need to #include the definitions of the function templates in each
.cc files that uses them.