Boa noite irmão.
Ao compilar está retornando vários erros, poderia me auxiliar? ubuntu 14.04 - 32bits
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;
^
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]
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]
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]: ** [chat.o] Erro 1
make[1]: ** Esperando que outros processos terminem.
mv -f .deps/baseevents.Tpo .deps/baseevents.Po
cc1plus: all warnings being treated as errors
make[1]: ** [combat.o] Erro 1
cc1plus: all warnings being treated as errors
make[1]: ** [beds.o] Erro 1
cc1plus: all warnings being treated as errors
make[1]: ** [actions.o] Erro 1