まず最初に、C++ に関する知識が乏しいことをお許しください。私は本当の初心者です!
MS VS2005 で 1 つの C++ コードをコンパイルしようとしています。以下のコードについて、次のようなリンカ エラーが発生します。
1 つの関数 (一部のクラス メソッド) 定義には、次のようなメモリ割り当てのコードがあります。
CDecoderUnit *du = new CDecoderUnit(); //<<error is shown at this line
この CDecoderUnit は、ヘッダー ファイルで次のように定義されたクラスです。
class CDecoderUnit : public IPrepareDecoderUnit
{
CDecoderUnit();
~CDecoderUnit();
...
...
other class definition.
..
..
}
実際のエラーは次のとおりです。
エラー LNK2019: 未解決の外部シンボル "public: __thiscall CDecoderUnit::CDecoderUnit(void)" (??0CDecoderUnit@@QAE@XZ) が関数 "private: long __thiscall CLSDEnc::CreateIPrepareDecoderUnit(struct IPrepareDecoderUnit * &)const" (? CreateIPrepareDecoderUnit@CLSDEnc@@ABEJAAPAUIPrepareDecoderUnit@@@Z) lsdenc.obj
誰でもこれを解決するように指示できますか?