Log in

View Full Version : eqemuloginserver error


provocating
06-30-2010, 02:44 PM
I can get everything to compile but the login server. I have tried on Opensuse and Debian 5 to get it to compile. I just did an SVN checkout 5 minutes ago and tried again on Opensuse. Ideas ?

Config.h:34: warning: ‘class Config’ has virtual functions but non-virtual destr uctor
Options.h: In constructor ‘Options::Options()’:
Options.h:168: warning: ‘Options::local_network’ will be initialized after
Options.h:166: warning: ‘bool Options::reject_duplicate_servers’
Options.h:31: warning: when initialized here
Client.cpp: In member function ‘void Client::Handle_SessionReady(const char*, un signed int)’:
Client.cpp:130: error: expected primary-expression before ‘unsigned’
Client.cpp:130: error: expected `)' before ‘unsigned’
Client.cpp:137: error: expected `)' before ‘status’
make: *** [Client.o] Error 1

pfyon
06-30-2010, 10:42 PM
Posted it in your other thread, but here's the diff to let it compile (haven't fully tested, but compiles without warnings and EQEmuLoginServer starts without issues):

Index: Client.cpp
================================================== =================
--- Client.cpp (revision 59)
+++ Client.cpp (working copy)
@@ -127,7 +127,7 @@
}

unsigned int mode = *((unsigned int*)data);
- if(mode == (unsigned int)LoginMode::lm_from_world)
+ if(mode == (unsigned int) lm_from_world)
{
log->Log(log_network, "Session ready indicated logged in from world(unsupported feature), disconnecting.");
connection->Close();

Xecuter
01-01-2011, 08:26 PM
Thanks, this fixed my problem with the login sever also