首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

怎么解决3个有关问题?

2012-02-08 
如何解决3个问题???sutd.obj : error LNK2005: public: int __thiscall Score::score(void) (?score@Sco

如何解决3个问题???
sutd.obj : error LNK2005: "public: int __thiscall Score::score(void)" (?score@Score@@QAEHXZ) already defined in score.obj
sutd.obj : error LNK2005: "public: void __thiscall Score::print(void)" (?print@Score@@QAEXXZ) already defined in score.obj
Debug/sutd.exe : fatal error LNK1169: one or more multiply defined symbols found

[解决办法]
代码,,,,,,,,,
[解决办法]
重复定义了,可能是在声明class的时候把相应函数实现了,但在CPP文件中又实现了一次
[解决办法]
可能是你在本身的类里面定义自身的对象,可以改为指向自身的指针。也有可能你的头包含文件包含有重复的变量
[解决办法]
肯定是重复定义了,。。。。

热点排行