I am getting a really weird error related to missing vtable for a given class constructor and destructor. Please help me to resolve this.
Undefined symbols for architecture 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)
Code snippet;
.h file:
class A: public B
public:
A();
~A();
};
.cpp file..
A::A()
{
}
A::~A()
{
}
See Question&Answers more detail:os