Ir para conteúdo
  • 0

ERRO COMPILAR TFS 0.4 LINUX UBUNTU 20.04


7401131

Pergunta

In file included from chat.h:20,
                 from chat.cpp:18:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from chat.h:20,
                 from chat.cpp:18:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from chat.h:20,
                 from chat.cpp:18:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from chat.h:20,
                 from chat.cpp:18:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from combat.h:20,
                 from combat.cpp:20:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from combat.h:20,
                 from combat.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from combat.h:20,
                 from combat.cpp:20:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from combat.h:20,
                 from combat.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from combat.h:20,
                 from combat.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from item.h:20,
                 from beds.h:20,
                 from beds.cpp:19:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from baseevents.cpp:20:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from baseevents.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from baseevents.cpp:20:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from baseevents.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
otsystem.h:115:10: error: ‘int ftime(timeb*)’ is deprecated [-Werror=deprecated-declarations]
  115 |  ftime(&t);
      |          ^
In file included from otsystem.h:76,
                 from baseevents.h:20,
                 from actions.h:20,
                 from actions.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from party.h:20,
                 from chat.h:24,
                 from chat.cpp:18:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
In file included from game.h:30,
                 from combat.cpp:23:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
In file included from house.h:27,
                 from beds.cpp:20:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
chat.cpp: In member function ‘ChatChannel* Chat::getChannel(Player*, uint16_t)’:
chat.cpp:1144:10: error: cannot convert ‘bool’ to ‘ChatChannel*’ in return
 1144 |   return false;
      |          ^~~~~
In file included from actions.cpp:23:
player.h: In member function ‘bool Player::isUsingOtclient() const’:
player.h:386:66: error: ‘CLIENTOS_OTCLIENT_LINUX’ was not declared in this scope
  386 |         bool isUsingOtclient() const { return operatingSystem >= CLIENTOS_OTCLIENT_LINUX; }
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
player.h: In member function ‘void Player::sendExtendedOpcode(uint8_t, const string&)’:
player.h:796:29: error: ‘class ProtocolGame’ has no member named ‘sendExtendedOpcode’
  796 |         {if(client) client->sendExtendedOpcode(opcode, buffer);}
      |                             ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: beds.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: chat.o] Error 1
make[1]: *** [Makefile:595: combat.o] Error 1
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: baseevents.o] Error 1
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:595: actions.o] Error 1
make[1]: Leaving directory '/pbotserv/src'
make: *** [Makefile:445: all] Error 2

 

Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...