vena
New Member
- Joined
- Jun 21, 2017
- Messages
- 65
- Reaction score
- 2
Hi, i have a big problem with compile my source tfs 0.4_dev 3777
this->
this->
Bash:
root@vps-xxxx:/home/otserv/source2# sh build.sh
TheForgottenServer build script -
Using ccache
CCache binaries located in /usr/lib/ccache
Start building on 1 cores, using 2 processes
make all-am
make[1]: Entering directory '/home/otserv/source2'
CXX baseevents.o
CXX actions.o
In file included from baseevents.cpp:21:0:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
int32_t round(float v);
^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21:0,
from /usr/include/boost/functional/hash/detail/float_functions.hpp:14,
from /usr/include/boost/functional/hash/detail/hash_float.hpp:14,
from /usr/include/boost/functional/hash/hash.hpp:21,
from /usr/include/boost/functional/hash.hpp:6,
from /usr/include/boost/regex/v4/basic_regex.hpp:23,
from /usr/include/boost/regex/v4/regex.hpp:67,
from /usr/include/boost/regex.hpp:31,
from otpch.h:37,
from baseevents.cpp:17:
/usr/include/c++/6/cmath:1790:3: note: previous declaration ‘constexpr float std::round(float) ’
round(float __x)
^~~~~
Makefile:556: recipe for target 'baseevents.o' failed
make[1]: *** [baseevents.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from actions.cpp:21:0:
tools.h:124:22: error: ‘int32_t round(float)’ conflicts with a previous declaration
int32_t round(float v);
^
In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21:0,
from /usr/include/boost/functional/hash/detail/float_functions.hpp:14,
from /usr/include/boost/functional/hash/detail/hash_float.hpp:14,
from /usr/include/boost/functional/hash/hash.hpp:21,
from /usr/include/boost/functional/hash.hpp:6,
from /usr/include/boost/regex/v4/basic_regex.hpp:23,
from /usr/include/boost/regex/v4/regex.hpp:67,
from /usr/include/boost/regex.hpp:31,
from otpch.h:37,
from actions.cpp:17:
/usr/include/c++/6/cmath:1790:3: note: previous declaration ‘constexpr float std::round(float) ’
round(float __x)
^~~~~
Makefile:556: recipe for target 'actions.o' failed
make[1]: *** [actions.o] Error 1
make[1]: Leaving directory '/home/otserv/source2'
Makefile:408: recipe for target 'all' failed
make: *** [all] Error 2
root@vps-exxxxx:/home/otserv/source2#