Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 c++ 项目有问题。我编译了 2 个.cpp文件并将它们链接到一个共享库.so。我想使用一种方法从其中一个到另一个,但是接收undefined reference vtable *。这些文件有头文件。任何人都可以提供任何提示吗?
.cpp
.so
undefined reference vtable *
因为您在头文件中为您的类定义了一些方法,但忘记在您的 cpp 文件中实现它们。请一一检查该类的所有方法(定义与实现)。