特定のクラス コンストラクターとデストラクターの vtable が見つからないことに関連する、非常に奇妙なエラーが発生します。これを解決するのを手伝ってください。
アーキテクチャ i386 の未定義シンボル:
"vtable for A", referenced from:
A::A() in A.o
A::~MissionController() in A.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
コードスニペット;
.h ファイル:
class A: public B
public:
A();
~A();
};
.cpp ファイル..
A::A()
{
}
A::~A()
{
}