Possible Duplicate:
Why can templates only be implemented in the header file?
When I include MyClass.h and do:
MyClass<int, int> ccc = MyClass<int, int>();
ccc.myMethod1(3, 4);
I get a lot of errors telling undefined reference to constructor and methods ... However when I include MyClass.cpp (which is not a proper why to code) there is no error ! How to fix that ?
I'm compiling under Code::Blocks using g++