| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 608 人关注过本帖
标题:[求助]七巧板小程序.可是在编译时,链接上有13个错误,希望能解决一下
只看楼主 加入收藏
xuli9527
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-8-14
收藏
 问题点数:0 回复次数:0 
[求助]七巧板小程序.可是在编译时,链接上有13个错误,希望能解决一下

请给予帮助.我做了个七巧板小程序.可是在编译时,链接上有13个错误.
都是我建立的那个新类上出现链接错误.是什么原因呢?
报错的提示是这样的:
Linking...
my.obj : error LNK2005: "public: static class CObject * __stdcall CChip::CreateObject(void)" (?CreateObject@CChip@@SGPAVCObject@@XZ) already defined in Chip.obj
my.obj : error LNK2005: "protected: static struct CRuntimeClass * __stdcall CChip::_GetBaseClass(void)" (?_GetBaseClass@CChip@@KGPAUCRuntimeClass@@XZ) already defined in Chip.obj
my.obj : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CChip::GetRuntimeClass(void)const " (?GetRuntimeClass@CChip@@UBEPAUCRuntimeClass@@XZ) already defined in Chip.obj
my.obj : error LNK2005: "public: static struct CRuntimeClass const CChip::classCChip" (?classCChip@CChip@@2UCRuntimeClass@@B) already defined in Chip.obj
myDoc.obj : error LNK2005: "public: static class CObject * __stdcall CChip::CreateObject(void)" (?CreateObject@CChip@@SGPAVCObject@@XZ) already defined in Chip.obj
myDoc.obj : error LNK2005: "protected: static struct CRuntimeClass * __stdcall CChip::_GetBaseClass(void)" (?_GetBaseClass@CChip@@KGPAUCRuntimeClass@@XZ) already defined in Chip.obj
myDoc.obj : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CChip::GetRuntimeClass(void)const " (?GetRuntimeClass@CChip@@UBEPAUCRuntimeClass@@XZ) already defined in Chip.obj
myDoc.obj : error LNK2005: "public: static struct CRuntimeClass const CChip::classCChip" (?classCChip@CChip@@2UCRuntimeClass@@B) already defined in Chip.obj
myView.obj : error LNK2005: "public: static class CObject * __stdcall CChip::CreateObject(void)" (?CreateObject@CChip@@SGPAVCObject@@XZ) already defined in Chip.obj
myView.obj : error LNK2005: "protected: static struct CRuntimeClass * __stdcall CChip::_GetBaseClass(void)" (?_GetBaseClass@CChip@@KGPAUCRuntimeClass@@XZ) already defined in Chip.obj
myView.obj : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CChip::GetRuntimeClass(void)const " (?GetRuntimeClass@CChip@@UBEPAUCRuntimeClass@@XZ) already defined in Chip.obj
myView.obj : error LNK2005: "public: static struct CRuntimeClass const CChip::classCChip" (?classCChip@CChip@@2UCRuntimeClass@@B) already defined in Chip.obj
Debug/my.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

my.exe - 13 error(s), 0 warning(s)

搜索更多相关主题的帖子: 七巧板 链接 编译 
2006-08-14 19:37
快速回复:[求助]七巧板小程序.可是在编译时,链接上有13个错误,希望能解决一下
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017033 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved