解决 C++ 编译报错 undefined reference to vtable for Class分析 GCC 链接 C++ 报 undefined reference to vtable 诱因,详解虚析构函数与纯虚函数定义缺失修复。C++ · gcc · 链接错误2026.10.28