首页
社区
课程
招聘
[旧帖] [求助]象棋游戏程序调试 0.00雪花
发表于: 2011-4-20 12:04 2942

[旧帖] [求助]象棋游戏程序调试 0.00雪花

2011-4-20 12:04
2942
象棋百科全书http://www.xqbase.com/league.htm
象棋小巫师win32版开源程序下载地址http://www.xqbase.com/resource.htm
用vc++6.0组建时提示以下错误:
Configuration: xqwlight - Win32 Debug--------------------
Linking...
XQWL03.OBJ : error LNK2005: "public: void __thiscall PositionStruct::Startup(void)" (?Startup@PositionStruct@@QAEXXZ) already defined in XQWL01.OBJ
XQWL03.OBJ : error LNK2005: "public: int __thiscall PositionStruct::MovePiece(int)" (?MovePiece@PositionStruct@@QAEHH@Z) already defined in XQWL02.OBJ
XQWL03.OBJ : error LNK2005: "public: void __thiscall PositionStruct::UndoMovePiece(int,int)" (?UndoMovePiece@PositionStruct@@QAEXHH@Z) already defined in XQWL02.OBJ
XQWL03.OBJ : error LNK2005: "public: int __thiscall PositionStruct::GenerateMoves(int *)const " (?GenerateMoves@PositionStruct@@QBEHPAH@Z) already defined in XQWL02.OBJ
XQWL03.OBJ : error LNK2005: "public: int __thiscall PositionStruct::LegalMove(int)const " (?LegalMove@PositionStruct@@QBEHH@Z) already defined in XQWL02.OBJ
XQWL03.OBJ : error LNK2005: "public: int __thiscall PositionStruct::Checked(void)const " (?Checked@PositionStruct@@QBEHXZ) already defined in XQWL02.OBJ
XQWL03.OBJ : error LNK2005: "public: int __thiscall PositionStruct::IsMate(void)" (?IsMate@PositionStruct@@QAEHXZ) already defined in XQWL02.OBJ
XQWL04.OBJ : error LNK2005: "public: void __thiscall PositionStruct::Startup(void)" (?Startup@PositionStruct@@QAEXXZ) already defined in XQWL01.OBJ
XQWL04.OBJ : error LNK2005: "public: int __thiscall PositionStruct::MovePiece(int)" (?MovePiece@PositionStruct@@QAEHH@Z) already defined in XQWL02.OBJ
XQWL04.OBJ : error LNK2005: "public: void __thiscall PositionStruct::UndoMovePiece(int,int)" (?UndoMovePiece@PositionStruct@@QAEXHH@Z) already defined in XQWL02.OBJ
XQWL04.OBJ : error LNK2005: "public: int __thiscall PositionStruct::MakeMove(int)" (?MakeMove@PositionStruct@@QAEHH@Z) already defined in XQWL02.OBJ
XQWL04.OBJ : error LNK2005: "public: int __thiscall PositionStruct::LegalMove(int)const " (?LegalMove@PositionStruct@@QBEHH@Z) already defined in XQWL02.OBJ
XQWL04.OBJ : error LNK2005: "public: int __thiscall PositionStruct::Checked(void)const " (?Checked@PositionStruct@@QBEHXZ) already defined in XQWL02.OBJ
XQWL04.OBJ : error LNK2005: "public: int __thiscall PositionStruct::IsMate(void)" (?IsMate@PositionStruct@@QAEHXZ) already defined in XQWL02.OBJ
XQWL05.OBJ : error LNK2005: "public: void __thiscall RC4Struct::InitZero(void)" (?InitZero@RC4Struct@@QAEXXZ) already defined in XQWL04.OBJ
XQWL05.OBJ : error LNK2005: "public: void __thiscall PositionStruct::Startup(void)" (?Startup@PositionStruct@@QAEXXZ) already defined in XQWL01.OBJ
XQWL05.OBJ : error LNK2005: "public: int __thiscall PositionStruct::MovePiece(int)" (?MovePiece@PositionStruct@@QAEHH@Z) already defined in XQWL02.OBJ
XQWL05.OBJ : error LNK2005: "public: void __thiscall PositionStruct::UndoMovePiece(int,int)" (?UndoMovePiece@PositionStruct@@QAEXHH@Z) already defined in XQWL02.OBJ
XQWL05.OBJ : error LNK2005: "public: int __thiscall PositionStruct::MakeMove(int)" (?MakeMove@PositionStruct@@QAEHH@Z) already defined in XQWL02.OBJ
XQWL05.OBJ : error LNK2005: "public: int __thiscall PositionStruct::GenerateMoves(int *,int)const " (?GenerateMoves@PositionStruct@@QBEHPAHH@Z) already defined in XQWL04.OBJ
XQWL05.OBJ : error LNK2005: "public: int __thiscall PositionStruct::LegalMove(int)const " (?LegalMove@PositionStruct@@QBEHH@Z) already defined in XQWL02.OBJ
XQWL05.OBJ : error LNK2005: "public: int __thiscall PositionStruct::Checked(void)const " (?Checked@PositionStruct@@QBEHXZ) already defined in XQWL02.OBJ
XQWL05.OBJ : error LNK2005: "public: int __thiscall PositionStruct::IsMate(void)" (?IsMate@PositionStruct@@QAEHXZ) already defined in XQWL02.OBJ
XQWL05.OBJ : error LNK2005: "public: int __thiscall PositionStruct::RepStatus(int)const " (?RepStatus@PositionStruct@@QBEHH@Z) already defined in XQWL04.OBJ
XQWL06.OBJ : error LNK2005: "public: void __thiscall RC4Struct::InitZero(void)" (?InitZero@RC4Struct@@QAEXXZ) already defined in XQWL04.OBJ
XQWL06.OBJ : error LNK2005: "public: void __thiscall PositionStruct::Startup(void)" (?Startup@PositionStruct@@QAEXXZ) already defined in XQWL01.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall PositionStruct::MovePiece(int)" (?MovePiece@PositionStruct@@QAEHH@Z) already defined in XQWL02.OBJ
XQWL06.OBJ : error LNK2005: "public: void __thiscall PositionStruct::UndoMovePiece(int,int)" (?UndoMovePiece@PositionStruct@@QAEXHH@Z) already defined in XQWL02.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall PositionStruct::MakeMove(int)" (?MakeMove@PositionStruct@@QAEHH@Z) already defined in XQWL02.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall PositionStruct::GenerateMoves(int *,int)const " (?GenerateMoves@PositionStruct@@QBEHPAHH@Z) already defined in XQWL04.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall PositionStruct::LegalMove(int)const " (?LegalMove@PositionStruct@@QBEHH@Z) already defined in XQWL02.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall PositionStruct::Checked(void)const " (?Checked@PositionStruct@@QBEHXZ) already defined in XQWL02.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall PositionStruct::IsMate(void)" (?IsMate@PositionStruct@@QAEHXZ) already defined in XQWL02.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall PositionStruct::RepStatus(int)const " (?RepStatus@PositionStruct@@QBEHH@Z) already defined in XQWL04.OBJ
XQWL06.OBJ : error LNK2005: "public: int __thiscall SortStruct::Next(void)" (?Next@SortStruct@@QAEHXZ) already defined in XQWL05.OBJ
XQWL01.OBJ : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Debug/xqwlight.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.

xqwlight.exe - 1 error(s), 0 warning(s)

如何执行连接?是我的工程设置不对吗?还是程序要修改?请高手帮忙!谢谢

[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 288
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
重定义了?估计需要在程序前面加预编译的那个东东吧!具体情况不明~
2011-4-20 12:54
0
雪    币: 985
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
没看懂!
2011-4-22 21:23
0
雪    币: 39
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
谢谢2楼3楼!是我组建工程时设置不对------vc++6.0太强大了。
2011-4-24 19:45
0
雪    币: 26
活跃值: (80)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
5
很明显是函数定义重复了,你需要把这些函数在.h文件里定义
或者  extern "C" 使用前用这个声明下
应该能解决问题
2021-4-3 11:26
0
游客
登录 | 注册 方可回帖
返回
//