This question already has an answer here:
I get this error a LOT, and i never know why. Can someone help me find the cause of it?
Edit:Removed code
This question already has an answer here:
I get this error a LOT, and i never know why. Can someone help me find the cause of it?
Edit:Removed code
Templates must be defined in header files. See these FAQs for more info:
Put the implementation (your method definitions) into the header along with the class declaration (see this in the C++ FAQ). Some compilers have supported an "export" keyword for doing it the way that you did, but that has been nixed in the C++0x.
This errors are happening because, your
template
definitions are not visible to the user code. Template definition should be declared in,test.h
test.cpp
test2.cpp