Subj : Re: Simple template linking problem To : borland.public.cpp.borlandcpp From : Jeff Kish Date : Fri Oct 03 2003 11:08 am On Thu, 11 Sep 2003 09:17:51 +0200, Colin wrote: > > >Colin wrote: >> Sadly, although I'd love to say "That's it!", the answer is that it made >> no difference putting the template method implementations into the >> header file, the linker still can't find the four methods shown.... >> >> Should I "flesh out" the class definition with the implementations, if >> so thats horrible, but if that's what it takes..... > >Okay, fixed it now - just put the implementations straight into the >class definition (so that they become inline functions) and all is well. >I now get three warnings about "Functions containing reserved words are >not expanded inline" (there are a couple of 'for' loops and a 'while'). >Strangely they don't go away with #pragma option -winl-, nor turning off >the warning in the compiler messages 'Inefficient C++ coding' page in >the IDE. Also TD doesn't step into the inline functions so it's a pain >to debug....other than that though.... I think there is a setting (at least in the 5.0.2 compiler) which will enable you to "disable" the inline part, then maybe you can step into them. project options | compiler | debugging | out of line in line functions Does your version of the compiler have this? HTH, Jeff Kish .