网狐子游戏编译常见问题


1.编译游戏提示:ShowHandBattleAndroid.exp : warning LNK4070: .EXP 中的 /OUT: AndroidServiceD.dll 指令与输出文件名“../../../../运行/Debug/Ansi/ShowHandBattleAndroid.dll”不同。

解决方法:解决方案--属性--配置,将Debug 改为Rlease_unicode,然后重新编译即可。

2.编译提示缺少d3dx9.h文件。

解决方法:一般是客户端才会用到这个文件,项目--属性--c++--常规  附加包含目录,这里输入dxsdk的inclue路径即可,比如:C:\sdk2005\Include

3.

AttemperEngineSink.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static bool __cdecl CTraceService::TraceString(char const *,enum enTraceLevel)" 

无法解析外部符号:

 CTraceService::TraceString

解决方法:
这是因为缺少相应的lib文件,打开stdafx.h
加入以下代码:

//编译环境
#include "..\..\..\SDKCondition.h"

//
#ifdef SDK_CONDITION

//
//开发环境

#include "..\..\..\开发库\Include\GameFrameHead.h"

#ifndef _DEBUG
#ifndef _UNICODE
#pragma comment (lib,"../../../开发库/Lib/Ansi/WHImage.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/GameFrame.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/GameEngine.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/SkinControl.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/ServiceCore.lib")
#else
#pragma comment (lib,"../../../开发库/Lib/Unicode/WHImage.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/GameFrame.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/GameEngine.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/SkinControl.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/ServiceCore.lib")
#endif
#else
#ifndef _UNICODE
#pragma comment (lib,"../../../开发库/Lib/Ansi/WHImageD.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/GameFrameD.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/GameEngineD.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/SkinControlD.lib")
#pragma comment (lib,"../../../开发库/Lib/Ansi/ServiceCoreD.lib")
#else
#pragma comment (lib,"../../../开发库/Lib/Unicode/WHImageD.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/GameFrameD.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/GameEngineD.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/SkinControlD.lib")
#pragma comment (lib,"../../../开发库/Lib/Unicode/ServiceCoreD.lib")
#endif
#endif

//

#else

//
//系统环境

#include "..\..\..\系统模块\客户端组件\游戏框架\GameFrameHead.h"

#ifndef _DEBUG
#ifndef _UNICODE
#pragma comment (lib,"../../../../系统模块/链接库/Ansi/WHImage.lib")
#pragma comment (lib,"../../../../系统模块/链接库/Ansi/GameFrame.lib")
#pragma comment (lib,"../../../../系统模块/链接库/Ansi/GameEngine.lib")
#pragma comment (lib,"../../../../系统模块/链接库/Ansi/SkinControl.lib")
#pragma comment (lib,"../../../../系统模块/链接库/Ansi/ServiceCore.lib")
#else
#pragma comment (lib,"../../../系统模块/链接库/Unicode/WHImage.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/GameFrame.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/GameEngine.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/SkinControl.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/ServiceCore.lib")
#endif
#else
#ifndef _UNICODE
#pragma comment (lib,"../../../系统模块/链接库/Ansi/WHImageD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Ansi/GameFrameD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Ansi/GameEngineD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Ansi/SkinControlD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Ansi/ServiceCoreD.lib")
#else
#pragma comment (lib,"../../../系统模块/链接库/Unicode/WHImageD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/GameFrameD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/GameEngineD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/SkinControlD.lib")
#pragma comment (lib,"../../../系统模块/链接库/Unicode/ServiceCoreD.lib")
#endif
#endif


#endif

#define  __TEST__  1
#define  __BANKER___
#define  __SPECIAL___

 

你可能感兴趣的:(网狐子游戏编译常见问题)