• 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 Erro Ubuntu 13.10

Diego Ribeiro

New Member
Joined
Dec 28, 2013
Messages
4
Reaction score
0
I have these errors when trying to compile a sources 8.6 with cast system on my linux ubuntu 13.10
Thank you in ..


Code:
player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCasting(bool c);
                              ^
player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastPassword(std::string p) {cast.password = p;};
                                          ^
player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastDescription(std::string desc) {
                                                ^
player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const addCastViewer(ProtocolGame* pg) {
                                            ^
player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const removeCastViewer(uint32_t id) {
                                          ^
player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewers() {
                              ^
player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewerByName(std::string n) {
                                                ^
In file included from house.h:27:0,
                from beds.cpp:20:
player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastBan(std::string n) {
                                      ^
player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastBan(std::string n) {
                                        ^
player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastMute(std::string n) {
                                      ^
player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastMute(std::string n) {
                                          ^
In file included from house.h:27:0,
                from beds.cpp:20:
player.h: In member function ‘const void Player::kickCastViewers()’:
player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
    cast = PlayerCast::PlayerCast();
                                  ^
player.h:233: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 ‘const bool Player::addCastBan(std::string)’:
player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.bans.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:250:46: error:  for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘const bool Player::addCastMute(std::string)’:
player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.muted.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:271:47: error:  for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: ** [beds.o] Erro 1
make[1]: ** Esperando que outros processos terminem.
mv -f .deps/baseevents.Tpo .deps/baseevents.Po
In file included from game.h:30:0,
                from combat.cpp:23:
player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCasting(bool c);
                              ^
player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastPassword(std::string p) {cast.password = p;};
                                          ^
player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastDescription(std::string desc) {
                                                ^
player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const addCastViewer(ProtocolGame* pg) {
                                            ^
player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const removeCastViewer(uint32_t id) {
                                          ^
player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewers() {
                              ^
player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewerByName(std::string n) {
                                                ^
In file included from game.h:30:0,
                from combat.cpp:23:
player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastBan(std::string n) {
                                      ^
player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastBan(std::string n) {
                                        ^
player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastMute(std::string n) {
                                      ^
player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastMute(std::string n) {
                                          ^
In file included from game.h:30:0,
                from combat.cpp:23:
player.h: In member function ‘const void Player::kickCastViewers()’:
player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
    cast = PlayerCast::PlayerCast();
                                  ^
player.h:233:34: error:  for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from game.h:30:0,
                from combat.cpp:23:
player.h: In member function ‘const bool Player::addCastBan(std::string)’:
player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.bans.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:250:46: error:  for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘const bool Player::addCastMute(std::string)’:
player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.muted.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:271:47: error:  for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: ** [combat.o] Erro 1
In file included from actions.cpp:23:0:
player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCasting(bool c);
                              ^
player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastPassword(std::string p) {cast.password = p;};
                                          ^
player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastDescription(std::string desc) {
                                                ^
player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const addCastViewer(ProtocolGame* pg) {
                                            ^
 
Continue :

Code:
player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const removeCastViewer(uint32_t id) {
                                          ^
player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewers() {
                              ^
player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewerByName(std::string n) {
                                                ^
In file included from actions.cpp:23:0:
player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastBan(std::string n) {
                                      ^
player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastBan(std::string n) {
                                        ^
player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastMute(std::string n) {
                                      ^
player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastMute(std::string n) {
                                          ^
In file included from actions.cpp:23:0:
player.h: In member function ‘const void Player::kickCastViewers()’:
player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
    cast = PlayerCast::PlayerCast();
                                  ^
player.h:233: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 ‘const bool Player::addCastBan(std::string)’:
player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.bans.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:250:46: error:  for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘const bool Player::addCastMute(std::string)’:
player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.muted.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:271:47: error:  for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: ** [actions.o] Erro 1
In file included from party.h:20:0,
                from chat.h:24,
                from chat.cpp:18:
player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCasting(bool c);
                              ^
player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastPassword(std::string p) {cast.password = p;};
                                          ^
player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const setCastDescription(std::string desc) {
                                                ^
player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const addCastViewer(ProtocolGame* pg) {
                                            ^
player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const removeCastViewer(uint32_t id) {
                                          ^
player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewers() {
                              ^
player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  void const kickCastViewerByName(std::string n) {
                                                ^
In file included from party.h:20:0,
                from chat.h:24,
                from chat.cpp:18:
player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastBan(std::string n) {
                                      ^
player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastBan(std::string n) {
                                        ^
player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const addCastMute(std::string n) {
                                      ^
player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  bool const removeCastMute(std::string n) {
                                          ^
In file included from party.h:20:0,
                from chat.h:24,
                from chat.cpp:18:
player.h: In member function ‘const void Player::kickCastViewers()’:
player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
    cast = PlayerCast::PlayerCast();
                                  ^
player.h:233: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 ‘const bool Player::addCastBan(std::string)’:
player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.bans.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:250:46: error:  for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘const bool Player::addCastMute(std::string)’:
player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
    cast.muted.push_back(CastBan::CastBan(n, ip));
                                              ^
player.h:271: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] Erro 1
make[1]: Saindo do diretório `/home/diego/Source'
make: ** [all] Erro 2
 
Back
Top