Quandoo vou compilar estou com esse error poderia ajudar? Ubuntu 14.04
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT beds.o -MD -MP -MF .deps/beds.Tpo -c -o beds.o beds.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT combat.o -MD -MP -MF .deps/combat.Tpo -c -o combat.o combat.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT condition.o -MD -MP -MF .deps/condition.Tpo -c -o condition.o condition.cpp
In file included from party.h:20:0,
from chat.h:24,
from chat.cpp:18:
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:216:11: error: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
return NULL;
^
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:237:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
cast = PlayerCast::PlayerCast();
^
player.h:237:34: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from party.h:20:0,
from chat.h:24,
from chat.cpp:18:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:263:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.bans.push_back(CastBan::CastBan(n, ip));
^
player.h:263:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:284:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.muted.push_back(CastBan::CastBan(n, ip));
^
player.h:284:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
chat.cpp: In member function ‘ChatChannel* Chat::getChannel(Player*, uint16_t)’:
chat.cpp:1144:10: error: converting ‘false’ to pointer type ‘ChatChannel*’ [-Werror=conversion-null]
return false;
^
cc1plus: all warnings being treated as errors
make[1]: *** [chat.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from game.h:31:0,
from combat.cpp:23:
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:216:11: error: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
return NULL;
^
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:237:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
cast = PlayerCast::PlayerCast();
^
player.h:237:34: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from game.h:31:0,
from combat.cpp:23:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:263:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.bans.push_back(CastBan::CastBan(n, ip));
^
player.h:263:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:284:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.muted.push_back(CastBan::CastBan(n, ip));
^
player.h:284:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: *** [combat.o] Error 1
In file included from house.h:27:0,
from beds.cpp:20:
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:216:11: error: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
return NULL;
^
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:237:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
cast = PlayerCast::PlayerCast();
^
player.h:237:34: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from house.h:27:0,
from beds.cpp:20:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:263:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.bans.push_back(CastBan::CastBan(n, ip));
^
player.h:263:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:284:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.muted.push_back(CastBan::CastBan(n, ip));
^
player.h:284:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: *** [beds.o] Error 1
In file included from game.h:31:0,
from condition.cpp:22:
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:216:11: error: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
return NULL;
^
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:237:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
cast = PlayerCast::PlayerCast();
^
player.h:237:34: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from game.h:31:0,
from condition.cpp:22:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:263:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.bans.push_back(CastBan::CastBan(n, ip));
^
player.h:263:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:284:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.muted.push_back(CastBan::CastBan(n, ip));
^
player.h:284:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: *** [condition.o] Error 1
In file included from actions.cpp:23:0:
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:216:11: error: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
return NULL;
^
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:237:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
cast = PlayerCast::PlayerCast();
^
player.h:237:34: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from actions.cpp:23:0:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:263:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.bans.push_back(CastBan::CastBan(n, ip));
^
player.h:263:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:284:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.muted.push_back(CastBan::CastBan(n, ip));
^
player.h:284:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: *** [actions.o] Error 1
make[1]: Leaving directory `/home/baiak/source'
make: *** [all] Error 2
root@localhost:/home/baiak/source#