-
undefined reference to `vtable for A'Computer/linux 2011. 12. 18. 02:45
a header file
class a : public TObject
{
public:
A();
virtual ~A() {};
}
Then I've got the linking error of g++ as follows:
undefined reference to `vtable for A'
The solution is to define the real destructor in source file.
a header file
class a : public TObject
{
public:
A();
virtual ~A();
}
a source file
A::~A()
{
}
'Computer > linux' 카테고리의 다른 글
How to eject a Kindle Touch 3rd Generation when it is USB drive mode in Linux command (0) 2012.02.07 replace korean input method on debian 6 (0) 2011.11.30 prepare to do very crazy thing (0) 2011.10.20