c++ - vtable 中的 undefined symbol 是否意味着接口(interface)和实现之间存在错误?

标签 c++ c++11 interface

这种错误是否暗示接口(interface)及其实现之间存在错误?

Undefined symbols for architecture i386:
  "MyClass::ChangeManager::GetChanges(
       MyClass::ObjectId, 
       MyClass::IChangeManager::Changes&, 
       bool)"
  , referenced from:
  vtable for MyClass::ChangeManager in libMobileUtils.a(ChangeManager.o)

最佳答案

没有。这只是意味着当实现发出 vtable 时,它​​选择将该函数放入其中。它只是一个普通的旧未定义函数。

关于c++ - vtable 中的 undefined symbol 是否意味着接口(interface)和实现之间存在错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27867888/

相关文章:

c++ - 如何将我的转换函数转换为 lambda 表达式?

c++ - 允许使用右值捕获但不分配给的运算符重载

postgresql - Postgis + boost::geometry + C++

c# - SQLite .NET 是否在 CreateTable 方法中接受接口(interface)

c# - 使用接口(interface)序列化子集合

c++ - memcpy 和 _CrtlsValidHeapPointer(pUserData)

c++ - 当函数中未指定返回值时,C++ 程序如何获取返回值?

C# - 无法将类型 List<Product> 隐式转换为 List<IProduct>

c++ - 转换为 token_def 的值类型

c++ - 运行时检查失败 #2 - 变量 'B' 周围的堆栈已损坏