arthurluna
Member
- Joined
- Apr 12, 2008
- Messages
- 180
- Reaction score
- 15
Recentimente cast system put on my source, compiling works perfectly on Windows, when I compile in Unbutu 11:04 is giving this error in the source code, I'm not very good at C + +, someone says what to do?
Inglês:
BR:
Inglês:
Code:
In file included from actions.cpp: 24:0:
player.h: In member function 'uint32_t Player :: getCastIpByName (std :: string)':
player.h: 206:11: error: converting to non-pointer type 'uint32_t {aka unsigned int}' from NULL [-Werror = conversion-null]
player.h: In member function 'void Player :: kickCastViewers ()':
player.h: 227:34: error: can not call constructor 'PlayerCast :: PlayerCast' directly [-fpermissive]
player.h: 227:34: error: for a function-style cast, remove the redundant ':: PlayerCast' [-fpermissive]
In file included from actions.cpp: 24:0:
player.h: In member function 'bool Player :: addCastBan (std :: string)':
player.h: 244:46: error: can not call constructor 'CastBan :: CastBan' directly [-fpermissive]
player.h: 244:46: error: for a function-style cast, remove the redundant ':: CastBan' [-fpermissive]
player.h: In member function 'bool Player :: addCastMute (std :: string)':
player.h: 265:47: error: can not call constructor 'CastBan :: CastBan' directly [-fpermissive]
player.h: 265:47: error: for a function-style cast, remove the redundant ':: CastBan' [-fpermissive]
**CXX chat.o
cc1plus: all warnings are treated as errors
make [1]: ** [actions.o] Error 1
make [1]: ** Waiting for other processes to finish.
In file included from house.h: 31:0,
*****************from beds.cpp: 20:
player.h: In member function 'uint32_t Player :: getCastIpByName (std :: string)':
player.h: 206:11: error: converting to non-pointer type 'uint32_t {aka unsigned int}' from NULL [-Werror = conversion-null]
player.h: In member function 'void Player :: kickCastViewers ()':
player.h: 227:34: error: can not call constructor 'PlayerCast :: PlayerCast' directly [-fpermissive]
player.h: 227:34: error: for a function-style cast, remove the redundant ':: PlayerCast' [-fpermissive]
In file included from house.h: 31:0,
*****************from beds.cpp: 20:
player.h: In member function 'bool Player :: addCastBan (std :: string)':
player.h: 244:46: error: can not call constructor 'CastBan :: CastBan' directly [-fpermissive]
player.h: 244:46: error: for a function-style cast, remove the redundant ':: CastBan' [-fpermissive]
player.h: In member function 'bool Player :: addCastMute (std :: string)':
player.h: 265:47: error: can not call constructor 'CastBan :: CastBan' directly [-fpermissive]
player.h: 265:47: error: for a function-style cast, remove the redundant ':: CastBan' [-fpermissive]
cc1plus: all warnings are treated as errors
make [1]: ** [beds.o] Error 1
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: 206:11: error: converting to non-pointer type 'uint32_t {aka unsigned int}' from NULL [-Werror = conversion-null]
player.h: In member function 'void Player :: kickCastViewers ()':
player.h: 227:34: error: can not call constructor 'PlayerCast :: PlayerCast' directly [-fpermissive]
player.h: 227: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: 244:46: error: can not call constructor 'CastBan :: CastBan' directly [-fpermissive]
player.h: 244:46: error: for a function-style cast, remove the redundant ':: CastBan' [-fpermissive]
player.h: In member function 'bool Player :: addCastMute (std :: string)':
player.h: 265:47: error: can not call constructor 'CastBan :: CastBan' directly [-fpermissive]
player.h: 265:47: error: for a function-style cast, remove the redundant ':: CastBan' [-fpermissive]
cc1plus: all warnings are treated as errors
make [1]: ** [chat.o] Error 1
make [1]: Leaving directory `/ home / arthur / Source '
make: ** [all] Error 2
BR:
Code:
In file included from actions.cpp:24:0:
player.h: Na função membro ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:206:11: erro: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
player.h: Na função membro ‘void Player::kickCastViewers()’:
player.h:227:34: erro: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:227:34: erro: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from actions.cpp:24:0:
player.h: Na função membro ‘bool Player::addCastBan(std::string)’:
player.h:244:46: erro: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:244:46: erro: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: Na função membro ‘bool Player::addCastMute(std::string)’:
player.h:265:47: erro: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:265:47: erro: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
CXX chat.o
cc1plus: todos os avisos devem ser tratados como erros
make[1]: ** [actions.o] Erro 1
make[1]: ** Esperando que outros processos terminem.
In file included from house.h:31:0,
from beds.cpp:20:
player.h: Na função membro ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:206:11: erro: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
player.h: Na função membro ‘void Player::kickCastViewers()’:
player.h:227:34: erro: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:227:34: erro: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from house.h:31:0,
from beds.cpp:20:
player.h: Na função membro ‘bool Player::addCastBan(std::string)’:
player.h:244:46: erro: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:244:46: erro: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: Na função membro ‘bool Player::addCastMute(std::string)’:
player.h:265:47: erro: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:265:47: erro: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: todos os avisos devem ser tratados como erros
make[1]: ** [beds.o] Erro 1
In file included from party.h:20:0,
from chat.h:24,
from chat.cpp:18:
player.h: Na função membro ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:206:11: erro: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
player.h: Na função membro ‘void Player::kickCastViewers()’:
player.h:227:34: erro: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:227:34: erro: 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: Na função membro ‘bool Player::addCastBan(std::string)’:
player.h:244:46: erro: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:244:46: erro: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: Na função membro ‘bool Player::addCastMute(std::string)’:
player.h:265:47: erro: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:265:47: erro: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: todos os avisos devem ser tratados como erros
make[1]: ** [chat.o] Erro 1
make[1]: Saindo do diretório `/home/arthur/Source'
make: ** [all] Erro 2