Recommended Posts

I know what usually causes an LNK2019, and I thought that I had accomodated for it. I'm most likely missing something fundamental about templates in a class, but I can't for the life of me figure out what I've done wrong here.
Here is my problem in a reduced form, split into three source files.
//-- main.cpp:

I get a LNK2049, saying:
LNK2019: unresolved external symbol "public: __thiscall My_Class<int>::My_Class<int>(void)" (??0?$My_Class@H@@QAE@XZ) referenced in function _main
It compiles fine, needless to say. It's like it doesn't ever implement the case where T == int, but I can't figure out why. Documentation didn't help either.
I'm using Microsoft Visual Studio .NET 2003
Any help or hints would be appreciated.