Hello All,

Can someone pls explain where i'm going wrong?:

here's a snippet of what i've written :

Matrix.h ***********************************

Code:

template <typename T>
class MTX{
public:
/* Constructors */
MTX(int, int);
.............

******************************************

Matrix.cpp**********************************

Code:

template <typename T> MTX<T>::MTX(int n, int m){
A = new std::vector<std::vector<T> >(n, m);
}

******************************************

main.cpp***********************************

Code:

main(){
MTX<int> mtx(50,50);
}

******************************************

i've put my includes in both main.cpp and Matrix.cpp (#include "Matrix.h")

and when i compile DevCpp gives ma the following error:

"[Linker error] undefined ref. to MTX<int>::MTX(int, int)"

I really don't see what's going wrong(i know what linker error means btw) because i'm

copying straight from an example in a book.

Any help would be great as its my first time trying to make a template class.

Thanks