I am having some difficulties allocating memory on the free store when using the 'new' keyword. What I have is one class called BigClass for example. And BigClass has a public member variable pointer to another class. eg my code looks something like this in BigClass.h

public:
class OtherClass* m_pcOther; //The pointer to the other class



now in the BigClass.cpp I am trying to allocate memory for the pointer by using something like

m_pcOther = new OtherClass;



It compiles fine but I get a link error that does not look friendly. I have included it below:
error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall OtherClass::GetRuntimeClass(void)const " (?GetRuntimeClass@OtherClass@@UBEPAUCRuntimeClass@@XZ)

If anyone knows how to deal with this, I would appreciate it very much. Thanks in advance,
Thomas