在对多个类进行封装成DLL的时候,产生了这样的错误,为什么

yine 2008-03-28 12:55:11
在对多个类进行封装成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.
...全文
135 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yine 2008-03-28
  • 打赏
  • 举报
回复
up,up
yine 2008-03-28
  • 打赏
  • 举报
回复
自己UP一下,怎么没人呢。

15,466

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧