解決方法:解決方案--屬性--配置,將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___
網狐6603棋牌遊戲原始碼 編譯
網狐6603棋牌遊戲原始碼 編譯 國慶完了,寫寫編譯 網狐6603棋牌遊戲原始碼 的經歷,假期無聊,反正就當練練手吧,於是就埋頭開始乙個個專案逐個編譯,結果全報錯,媽的,編譯環境的問題?我的筆記本也算不錯的,i7 4710cpu 8g ram 就差個固態硬碟,虛擬一台win2003 搭建環境,vc6...
計網常見問題
1.tcp和udp的區別 1 tcp面向連線,udp是無連線的,即傳送資料前不需要建立連線。2 tcp是可靠交付,udp是盡最大努力交付。tcp注重資料安全性,udp資料傳輸快,但 其 安全性一般 3 tcp傳輸單位稱為tcp報文段,udp傳輸單位稱為使用者資料報。4 tcp是點對點連線的,udp是...
交叉編譯常見問題
1 新增環境變數 網上的解決辦法很多 2 找不到編譯器 在用交叉編譯器時遇到的問題 解決了 su 輸入密碼,這樣就進入了root使用者許可權,這個時候再輸入下面命令 source etc profile 結果問題就解決了 最後查詢su 和sudo 的區別,終於理解了,原來是工作環境的問題。希望此貼以...