LCKB
Compiling Connector - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196)
+---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192)
+---- Thread: Compiling Connector (/showthread.php?tid=3310)

Pages: 1 2


- WorldOfWars - 03-05-2015

i found the problem Smile.




- jeremie - 03-05-2015


i found the problem Smile.

post the solution pls Smile




- WorldOfWars - 03-05-2015



#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)




- Wizatek - 03-05-2015


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.




- Karmel - 03-05-2015


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 ?




- Tarissuis - 03-06-2015

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.