Cześć,
mam problem z kompilacja silnika z cast system, mianowicie robię to w następujący sposób:
Otrzymuję takie coś:
Wie ktoś co jest nie tak?
Silnik: TFS 0.3.7_SVN 9.60/61
mam problem z kompilacja silnika z cast system, mianowicie robię to w następujący sposób:
Code:
./autogen.sh
./configure --enable-mysql --enable-root-permission
./build.sh
Otrzymuję takie coś:
Code:
CXX actions.o
CXX beds.o
CXX chat.o
CXX combat.o
CXX condition.o
CXX container.o
CXX configmanager.o
CXX creature.o
CXX creatureevent.o
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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
In file included from creatureevent.cpp:26: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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
In file included from house.h:31:0,
from configmanager.cpp:21:
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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
In file included from creature.cpp:20: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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
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: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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
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: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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
In file included from game.h:31:0,
from container.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:224:36: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:224:36: error: for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:237:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:237:46: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:258:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:258:47: error: for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: *** [creatureevent.o] Błąd 1
make[1]: *** Oczekiwanie na niezakończone zadania....
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
make[1]: *** [configmanager.o] Błąd 1
make[1]: *** [actions.o] Błąd 1
cc1plus: all warnings being treated as errors
make[1]: *** [chat.o] Błąd 1
cc1plus: all warnings being treated as errors
make[1]: *** [beds.o] Błąd 1
cc1plus: all warnings being treated as errors
make[1]: *** [condition.o] Błąd 1
cc1plus: all warnings being treated as errors
make[1]: *** [creature.o] Błąd 1
cc1plus: all warnings being treated as errors
make[1]: *** [combat.o] Błąd 1
cc1plus: all warnings being treated as errors
make[1]: *** [container.o] Błąd 1
Wie ktoś co jest nie tak?
Silnik: TFS 0.3.7_SVN 9.60/61