Hello,
First of all, excuse me for my poor knowledge on C++. I am a real Beginner!
I am trying to compile one C++ code on MS VS2005. I am getting a linker error as follows for below piece of code:-
In one function(some class method) definition, it has code for memory allocation like:
CDecoderUnit *du = new CDecoderUnit(); //<<error is shown at this line
This CDecoderUnit is a class defined in a header file as something like
class CDecoderUnit : public IPrepareDecoderUnit
{
CDecoderUnit();
~CDecoderUnit();
...
...
other class definition.
..
..
}
The actual error is:-
Error 9 error LNK2019: unresolved external symbol "public: __thiscall CDecoderUnit::CDecoderUnit(void)" (??0CDecoderUnit@@QAE@XZ) referenced in function "private: long __thiscall CLSDEnc::CreateIPrepareDecoderUnit(struct IPrepareDecoderUnit * &)const " (?CreateIPrepareDecoderUnit@CLSDEnc@@ABEJAAPAUIPrepareDecoderUnit@@@Z) lsdenc.obj
Can anyone point me to resolve this? Is any more info needed?
Thank you.
-AD.