03-05-2015, 04:43 PM
i found the problem
.
.|
Compiling Connector
|
|
03-05-2015, 04:43 PM
i found the problem
.
03-05-2015, 06:21 PM
i found the problem .post the solution pls ![]()
03-05-2015, 07:16 PM
#ifdef _MSC_VER //not #if defined(_WIN32) || defined(_WIN64) because we have strncasecmp in mingw #define strncasecmp _strnicmp #define strcasecmp _stricmp #endif This is the code that i added to User.cpp. Now another : Error 1 error LNK2019: unresolved external symbol "public: void __thiscall CBPacket::Init(short)" (?Init@CBPacket@@QAEXF@Z) referenced in function "void __cdecl BillBalanceReqMsg(class boost: hared_ptr<class CBPacket> &,int,char const *)" (?BillBalanceReqMsg@@YAXAAV?$shared_ptr@VCBPacket@@@boost@@HPBD@Z)
03-05-2015, 07:38 PM
Its because your fix was just a bandaid for that 1 problem you had, and not a solution for the overall problem. Somehow CIRCLE_WINDOWS was not defined, and everything that is linux or windows specific will now error.
03-05-2015, 07:58 PM
Project > Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions > WIN32;_WIN32;_WIN32_WINNT; Some of these definitions, I do not remember well. Anyway, you can insert all. Error 1 error LNK2019: unresolved external symbol "public: void __thiscall CBPacket::Init(short)" (?Init@CBPacket@@QAEXF@Z) referenced in function "void __cdecl BillBalanceReqMsg(class boost: hared_ptr<class CBPacket> &,int,char const *)" (?BillBalanceReqMsg@@YAXAAV?$shared_ptr@VCBPacket@@@boost@@HPBD@Z)About shared_ptr you need to add #include <boost/shared_ptr.hpp> into source.Or something like that, when i compiling gameserver on linux I had to add: #include <boost/scoped_ptr.hpp> into "GameServer/DBProcess_CreateChar.cpp". But i can be wrong with this, maybe it is missing symbol in lib... Edit: ofc, you add boost libs to the project ?
03-06-2015, 06:29 PM
Generally speaking you can compile everything without changing code. If you've added/replaced code --> roll back, that's not what you want to do. All you need are the libs and compiler/linker settings.
|
|
« Next Oldest | Next Newest »
|