• 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!

Solved TFS 1.5 nekiro downgrade Debian compiling error

OTAmator

Member
Joined
May 4, 2016
Messages
60
Reaction score
8
Hi, got error while compiling TFS 1.5 nekiro downgrade on Debian, can anyone help?

Bash:
debian@vps-ee1a39dc:~/tfs-1.5-dwongrade-nekiro-version-7.7/build$ make
[  1%] Checking the git repository for changes...
[  1%] Built target check_git
[  2%] Building CXX object CMakeFiles/tfs.dir/cmake_pch.hxx.gch
In file included from /usr/include/boost/asio.hpp:23,
                 from /home/debian/tfs-1.5-dwongrade-nekiro-version-7.7/src/otpch.h:42,
                 from /home/debian/tfs-1.5-dwongrade-nekiro-version-7.7/build/CMakeFiles/tfs.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/include/boost/asio/awaitable.hpp: In constructor 'boost::asio::awaitable<T, Executor>::awaitable(boost::asio::awaitable<T, Executor>&&)':
/usr/include/boost/asio/awaitable.hpp:68:19: error: 'exchange' is not a member of 'std'; did you mean 'std::__atomic_impl::exchange'?
   68 |     : frame_(std::exchange(other.frame_, nullptr))
      |                   ^~~~~~~~
In file included from /usr/include/c++/12/bits/shared_ptr_atomic.h:33,
                 from /usr/include/c++/12/memory:78,
                 from /home/debian/tfs-1.5-dwongrade-nekiro-version-7.7/src/otpch.h:34:
/usr/include/c++/12/bits/atomic_base.h:976:7: note: 'std::__atomic_impl::exchange' declared here
  976 |       exchange(_Tp* __ptr, _Val<_Tp> __desired, memory_order __m) noexcept
      |       ^~~~~~~~
make[2]: *** [CMakeFiles/tfs.dir/build.make:77: CMakeFiles/tfs.dir/cmake_pch.hxx.gch] Error 1
make[1]: *** [CMakeFiles/Makefile2:102: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Post automatically merged:

nvm i found solution on my own:
changed in CMakeLists.txt cpp standard:
from:
Code:
set_target_properties(tfs PROPERTIES CXX_STANDARD 20)
set_target_properties(tfs PROPERTIES CXX_STANDARD_REQUIRED ON)
to:
Lua:
set_target_properties(tfs PROPERTIES CXX_STANDARD 17)
set_target_properties(tfs PROPERTIES CXX_STANDARD_REQUIRED ON)
 
Last edited:
Back
Top