• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Problem with game.cpp

martines

New Member
Joined
May 3, 2017
Messages
5
Reaction score
0
my trun r3884 when i try compile :

g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In member function ‘Item* Game::findItemOfType(Cylinder*, uint16_t, bool, int32_t)’:
game.cpp:1788:10: error: cannot convert ‘bool’ to ‘Item*’ in return
return false;
 
thanks, i have now

g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
In file included from game.cpp:20:0:
configmanager.h:22:1: error: expected initializer before ‘class’
class ConfigManager
^~~~~
Makefile:551: recipe for target 'game.o' failed
make[1]: *** [game.o] Error 1
make[1]: Leaving directory '/root/ots'
Makefile:408: recipe for target 'all' failed
make: *** [all] Error 2
root@ns359697:~/ots#
 
Back
Top