Subj : Re: Simple template linking problem To : borland.public.cpp.borlandcpp From : maeder@glue.ch (Thomas Maeder [TeamB]) Date : Wed Sep 10 2003 11:18 pm Colin writes: > Linker Error: Undefined symbol TList::Delete(int) in module > listtest.cpp > Linker Error: Undefined symbol TList::Add(TCommBuffer far*) > in module listtest.cpp > Linker Error: Undefined symbol TList::TList() > in module listtest.cpp > Linker Error: Undefined symbol TList::~TList() > in module listtest.cpp > > and yet the test app uses First, Last and Count ? What's going on??? > > TIA (oh, and sorry about the verbosity, but I thought you'd like to see > the whole code!!!!) Actually, *minimal* code is what we want to see. Just enough to see the problem; usually, this is <50 lines. Where are these template member functions implemented? Directly in the header? Or in a separate (.cpp) file? If the latter, that is the problem. Templates can't currently be separately compiled, unless you use one of very few compilers that support it. No Borland compiler is among these. .