PDA

View Full Version : Server make error


Timp
07-17-2010, 02:18 PM
Hello, I am getting an error while trying to build the login server.

Login:/home/server/eqemu/EQEmuLoginServer# make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -O -g -march=i686 -pthread -pipe -DEQLAUNCH -DEQDEBUG=5 -I/usr/include/mysql -DBIG_JOINS=1 -fPIC Client.cpp -o Client.o
In file included from LoginServer.h:27,
from Client.cpp:20:
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*, unsigned 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

Derision
07-17-2010, 02:37 PM
The compile fails on my Gentoo system at the same line, although with a different error message. Changing Client.cpp line 130 from:

if(mode == (unsigned int)LoginMode::lm_from_world)

to:
if(mode == (unsigned int)lm_from_world)

may get it to compile (it does for me, with that change).

Timp
07-17-2010, 02:59 PM
Worked. Thanks Derision.