Guest_imported
New member
- Jan 1, 1970
- 0
I am using Visual C++ 6.0. I am trying to write a program that calls a template class in another file. AFAIK, I have the class definitions and member functions written correctly and have the proper included headers. I say this because the code containing the class template compiles correctly. However, when I try to compile an outside program which calls this class template, I get the following error:
TestCode.obj : error LNK2001: unresolved external symbol ...
which then points to the constructors that were called at the beginning of my main() program.
Is this an issue with Visual C++? I can't see the use of using templates if I can't call them from other files. When I remove the template nomenclature and use regular classes, everything compiles fine.
Thanks in advance for any help.
TestCode.obj : error LNK2001: unresolved external symbol ...
which then points to the constructors that were called at the beginning of my main() program.
Is this an issue with Visual C++? I can't see the use of using templates if I can't call them from other files. When I remove the template nomenclature and use regular classes, everything compiles fine.
Thanks in advance for any help.