This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Template trouble


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]