Please help me, I am new to Microsoft Visual C++, and I am
experiencing a problem with template classes.
I have defined and created a template class (tStack) in a source code file (stack.h and stack.cpp). I now want to use the stack class (of type tStack<long>) in my program. All of the source code files compile without errors, but during the link phase the linker reports that it can not link the appropriate class member functions.
I assume that the compiler is not instantiating the class tStack<long>, and this is what is causing the problem - but I do not know how to solve the problem. I would be grateful of a solution.
Thankyou in anticipation.