我得到這個奇怪的鏈接錯誤:LNK2019錯誤在C++
Error 1 error LNK2019: unresolved external symbol "public: virtual __thiscall Data::~Data(void)" ([email protected]@[email protected]) referenced in function "public: virtual __thiscall Job::~Job(void)" ([email protected]@[email protected]) C:\...\Job.obj
Error 2 error LNK2019: unresolved external symbol "public: __thiscall List::DataNode::DataNode(class List::DataNode const &)" ([email protected]@@[email protected]@@Z) referenced in function "public: __thiscall List::List(class List const *)" ([email protected]@[email protected]@@Z) C:\...\List.obj
從第一個錯誤的描述,它可能是與析構函數。
我有一個純虛析構函數的空洞抽象的數據類:
virtual ~Data()=0;
和一類工作,從數據得出,用簡單的實現析構函數:
Job::~Job()
{
}
燦你發現一個問題?我該如何解決它? 謝謝!
提供完整的源代碼... –