- Joined
- Apr 1, 2012
- Messages
- 1,249
- Solutions
- 71
- Reaction score
- 621
- Location
- Hell
- GitHub
- idontreallywolf
@Znote
Started compiling but then this error poped up. Not sure how to fix this .
Started compiling but then this error poped up. Not sure how to fix this .
Code:
[ 1%] Generating CXX prefix source cotire/tfs_CXX_prefix.cxx
[ 2%] Generating CXX prefix header cotire/tfs_CXX_prefix.hxx
[ 3%] Building CXX precompiled header cotire/tfs_CXX_prefix.hxx.pch
Scanning dependencies of target tfs
[ 5%] Building CXX object CMakeFiles/tfs.dir/src/otpch.cpp.o
[ 6%] Building CXX object CMakeFiles/tfs.dir/src/actions.cpp.o
[ 7%] Building CXX object CMakeFiles/tfs.dir/src/ban.cpp.o
[ 8%] Building CXX object CMakeFiles/tfs.dir/src/baseevents.cpp.o
[ 10%] Building CXX object CMakeFiles/tfs.dir/src/bed.cpp.o
[ 11%] Building CXX object CMakeFiles/tfs.dir/src/chat.cpp.o
[ 12%] Building CXX object CMakeFiles/tfs.dir/src/combat.cpp.o
[ 13%] Building CXX object CMakeFiles/tfs.dir/src/commands.cpp.o
[ 15%] Building CXX object CMakeFiles/tfs.dir/src/condition.cpp.o
[ 16%] Building CXX object CMakeFiles/tfs.dir/src/configmanager.cpp.o
[ 17%] Building CXX object CMakeFiles/tfs.dir/src/connection.cpp.o
/Users/nedimkanat/Downloads/tfs12/src/connection.cpp:119:30: error: no matching conversion for functional-style cast from 'Connection::(anonymous enum at
/Users/nedimkanat/Downloads/tfs12/src/connection.h:67:3)' to 'boost::posix_time::seconds'
readTimer.expires_from_now(boost::posix_time::seconds(Connection::read_timeout));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from
'Connection::(anonymous enum at /Users/nedimkanat/Downloads/tfs12/src/connection.h:67:3)' to 'const boost::posix_time::seconds' for 1st argument
class BOOST_SYMBOL_VISIBLE seconds : public time_duration
^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate constructor (the implicit move constructor) not viable: no known conversion from
'Connection::(anonymous enum at /Users/nedimkanat/Downloads/tfs12/src/connection.h:67:3)' to 'boost::posix_time::seconds' for 1st argument
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:58:37: note: candidate template ignored: disabled by 'enable_if' [with T = Connection::(anonymous enum at
/Users/nedimkanat/Downloads/tfs12/src/connection.h:67:3)]
typename boost::enable_if<boost::is_integral<T>, void>::type* = 0) :
^
/Users/nedimkanat/Downloads/tfs12/src/connection.cpp:163:30: error: no matching conversion for functional-style cast from 'Connection::(anonymous enum at
/Users/nedimkanat/Downloads/tfs12/src/connection.h:67:3)' to 'boost::posix_time::seconds'
readTimer.expires_from_now(boost::posix_time::seconds(Connection::read_timeout));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~