Page 1 of 1

Linux compile error

Posted: Fri Aug 10, 2012 10:45 pm
by John Adams
Latest SVN -

Code: Select all

$ make
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include zoneserver.cpp -o zoneserver.o
zoneserver.cpp:3610: warning: this decimal constant is unsigned only in ISO C90
zoneserver.cpp: In constructor âZoneServer::ZoneServer(const char*)â:
zoneserver.cpp:173: error: âClientLoopâ was not declared in this scope
zoneserver.cpp: In member function âvoid ZoneServer::RemoveClient(Client*)â:
zoneserver.cpp:2040: warning: suggest parentheses around assignment used as truth value
zoneserver.cpp:2053: warning: unused variable âleaderâ
make: *** [zoneserver.o] Error 1
Don't know why this is failing. Code looks similar ot the other loops. Apparently happened in Rev 1650.

Re: Linux compile error

Posted: Sat Aug 11, 2012 4:45 pm
by John Adams
Found it.

zoneserver.h - simple typo

Code: Select all

#ifdef WIN32
	void ZoneLoop(void *tmp);
	void SpawnLoop(void *tmp);
	void SendInitialSpawns(void *tmp);
	void CombatLoop(void *tmp);
	void ClientLoop(void* tmp);
#else
	void *ZoneLoop(void *tmp);
	void *SpawnLoop(void *tmp);
	void *SendInitialSpawns(void *tmp);
	void *CombatLoop(void *tmp);
	void *ClinetLoop(void *tmp);  <<==
#endif

Re: Linux compile error

Posted: Sat Aug 11, 2012 5:40 pm
by Jabantiz
Figures it is something simple I overlooked...