在对多个类进行封装成DLL的时候,产生了这样的错误,为什么 ataDLL.lib(DataDLL.dll) : error LNK2005: "public: int __thiscall CPartList::SetAutoNumber(void)" (?SetAutoNumber@CPartList@@QAEHXZ) already defined in file.obj
DataDLL.lib(DataDLL.dll) : error LNK2005: "public: struct __POSITION * __thiscall CPartList::GetPartPosi(int)" (?GetPartPosi@CPartList@@QAEPAU__POSITION@@H@Z) already defined in file.obj
DataDLL.lib(DataDLL.dll) : error LNK2005: "public: class CPartBase * __thiscall CPartList::GetPartNode(int)" (?GetPartNode@CPartList@@QAEPAVCPartBase@@H@Z) already defined in file.obj
DataDLL.lib(DataDLL.dll) : error LNK2005: "public: void __thiscall CPartList::RemoveAllPart(void)" (?RemoveAllPart@CPartList@@QAEXXZ) already defined in file.obj
TopControl.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CPartList::~CPartList(void)" (__imp_??1CPartList@@UAE@XZ)
TopControl.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CPartList::CPartList(void)" (__imp_??0CPartList@@QAE@XZ)
TopControl.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall FileHead::FileHead(void)" (__imp_??0FileHead@@QAE@XZ)
TopControl.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CPartBase::CPartBase(void)" (__imp_??0CPartBase@@QAE@XZ)
TopControl.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CPartBase::~CPartBase(void)" (__imp_??1CPartBase@@UAE@XZ)
Debug/Gbwjs.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.