• 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 Compiling old TFS on ubuntu 20.04

beliar34

Member
Joined
Feb 28, 2012
Messages
307
Solutions
7
Reaction score
11
sup guys, i am back with my old server but i am stuck on problem that i am strugling to solve ...

When i start compiling i got this error in every comp line ...
"39 | extern int ftime (struct timeb *__timebuf"

C:
In file included from otsystem.h:37,
                 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)
      |            ^~~~~
Code:
                 from server.cpp:22:
otsystem.h:163:10: warning: ‘int ftime(timeb*)’ is deprecated [-Wdeprecated-declarations]
  163 |  ftime(&t);
      |          ^
i have no ideas 0.o

Solved :
 
Last edited:
otsystem.h: In function ‘int64_t OTSYS_TIME()’:
otsystem.h:115:14: warning: ‘int ftime(timeb*)’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
115 | ftime(&t);
| ~~^~~~
In file included from otsystem.h:76,
from player.h:20,
from party.h:20,
from party.cpp:18:
/usr/include/x86_64-linux-gnu/sys/timeb.h:29:12: note: declared here
29 | extern int ftime (struct timeb *__timebuf)
| ^~
make[1]: Leaving directory '/home/diego/trunk.r3777'
make: *** [Makefile:456: all] Error 2
root@ubuntu:/home/diego/trunk.r3777# otsystem.h:115:14: warning: ‘int ftime(timeb*)’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
115 | ftime(&t);
bash: syntax error near unexpected token `('
bash: syntax error near unexpected token `&'
 
Back
Top