Undefined Reference to ‘vtable for XXX' / ‘typeinfo for XXX'
This page answers questions like these:
- Why am I getting “undefined reference to ‘vtable for XXX'” error?
- Why am I getting “undefined reference to ‘typeinfo for XXX'” error?
- Why doesn’t my code compile?
- Why doesn’t my code link?
Related Links:
warning/error: inline function used but never defined
warning/error: invalid conversion from 'char**' to 'const char**'
error: the compiler can assume that the address of '...' will always evaluate to 'true'
Static Assertion / Compile-Time Assertion
undefined reference to ‘typeinfo for XXX' / ‘vtable for XXX'
- A virtual function must either (1) be defined (even if empty), or (2) be declared a pure virtual function.
- virtual void func() {}
- virtual void func() = 0;
Related Links:
warning/error: inline function used but never defined
warning/error: invalid conversion from 'char**' to 'const char**'
error: the compiler can assume that the address of '...' will always evaluate to 'true'
Static Assertion / Compile-Time Assertion
Home > C++ > Undefined Reference to ‘vtable for XXX' / ‘typeinfo for XXX'
Tags: undefined reference to ‘vtable for, undefined reference to ‘typeinfo for, ld, collect2, C++
Copyright © HelpDoco.com
code-cpp-ld-error-undefined-reference.txt
C++/error-undefined-reference-to.htm
1