Hi, I'm writing a Matrix program: I have a class to represent a Regular matrix (RegMatrix), and a class to represent a sparse matrix (SparseMatrix), that is: represent only the none-zero's values.
In the begining of each H file, i write the opposite class declaration. For example, in SparseMatrix.h I write class RegMatrix (so that the compiler would recognize my refers to this class). In each cpp file i include both of the H files.
My program compiles, but i have loads of linkage errors, saying "unresolved external symbol.."
For example: unresolved external symbol "public: int__thiscall RegMatrix::getCol(void)const " (?getCol@RegMatrix@@QBEHXZ)" [file: SparseMatrix.obj]
I'm going nuts trying to figure out what's wrong with my code..