Acidburn 0 Posting Pro

Hello can anyone explain the following bugs:

Book.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CBook::Serialize(class CArchive &)" (?Serialize@CBook@@UAEXAAVCArchive@@@Z)
ViewBooks.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CBook::Serialize(class CArchive &)" (?Serialize@CBook@@UAEXAAVCArchive@@@Z)
LSMUtility.obj : error LNK2019: unresolved external symbol "public: __thiscall CBook::~CBook(void)" (??1CBook@@QAE@XZ) referenced in function "public: virtual void __thiscall CList<class CBook,class CBook &>::Serialize(class CArchive &)" (?Serialize@?$CList@VCBook@@AAV1@@@UAEXAAVCArchive@@@Z)
Debug/LSMUtility.exe : fatal error LNK1120: 2 unresolved externals

All I've done is taken my class and added the following:

Class CBook : public CObject

and added the following line to the header file:

DECLARE_SERIAL

and then the .cpp file

IMPLEMENT_SERIAL(CBook, CObject, 0)

any ideas?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.