Compiling Connector
#11
i found the problem Smile.

#12

i found the problem Smile.

post the solution pls Smile

#13


#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:Confusedhared_ptr<class CBPacket> &,int,char const *)" (?BillBalanceReqMsg@@YAXAAV?$shared_ptr@VCBPacket@@@boost@@HPBD@Z)

#14

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.

#15

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:Confusedhared_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 ?

#16
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.



Forum Jump:


Users browsing this thread: 1 Guest(s)