boost issue when compiling a project

hey everyone i am trying to compile a qt project on os x 10.13.4 and have tried boost 1.57, 1.59, 1.60 and 1.66, here is the error i need help with

In file included from src/txdb-leveldb.cpp:9:
In file included from /usr/local/opt/boost@1.60/include/boost/filesystem.hpp:16:
/usr/local/opt/boost@1.60/include/boost/filesystem/path.hpp:153:55: error: no member named 'move' in namespace 'std'
path(path&& p) BOOST_NOEXCEPT { m_pathname = std::move(p.m_pathname); }
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/path.hpp:155:27: error: no member named 'move' in namespace 'std'
{ m_pathname = std::move(p.m_pathname); return *this; }
~~~~~^
In file included from src/txdb-leveldb.cpp:9:
In file included from /usr/local/opt/boost@1.60/include/boost/filesystem.hpp:17:
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:281:22: error: no member named 'move' in namespace 'std'
m_value = std::move(rhs.m_value);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:282:22: error: no member named 'move' in namespace 'std'
m_perms = std::move(rhs.m_perms);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:286:22: error: no member named 'move' in namespace 'std'
m_value = std::move(rhs.m_value);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:287:22: error: no member named 'move' in namespace 'std'
m_perms = std::move(rhs.m_perms);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:775:19: error: no member named 'move' in namespace 'std'
m_path = std::move(rhs.m_path);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:776:21: error: no member named 'move' in namespace 'std'
m_status = std::move(rhs.m_status);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:777:29: error: no member named 'move' in namespace 'std'
m_symlink_status = std::move(rhs.m_symlink_status);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:781:19: error: no member named 'move' in namespace 'std'
m_path = std::move(rhs.m_path);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:782:21: error: no member named 'move' in namespace 'std'
m_status = std::move(rhs.m_status);
~~~~~^
/usr/local/opt/boost@1.60/include/boost/filesystem/operations.hpp:783:29: error: no member named 'move' in namespace 'std'
m_symlink_status = std::move(rhs.m_symlink_status);
~~~~~^
In file included from src/txdb-leveldb.cpp:17:
In file included from src/kernel.h:7:
In file included from src/main.h:14:
In file included from src/core.h:9:
In file included from src/serialize.h:23:
In file included from src/allocators.h:11:
In file included from /usr/local/opt/boost@1.60/include/boost/thread/mutex.hpp:16:
In file included from /usr/local/opt/boost@1.60/include/boost/thread/pthread/mutex.hpp:16:
In file included from /usr/local/opt/boost@1.60/include/boost/thread/lock_types.hpp:11:
/usr/local/opt/boost@1.60/include/boost/thread/detail/move.hpp:31:10: fatal error: 'type_traits' file not found
#include <type_traits>
^~~~~~~~~~~~~
13 errors generated.
make[1]: *** [build/txdb-leveldb.o] Error 1
make: *** [release] Error 2
09:02:34: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project flapx-qt (kit: QT 5.11)
When executing step "Make"
Last edited on
Your compiler isn't compiling c++11 (or later).

Either it's an old compiler, or it needs to be told to compile in C++11 (or later).
well looks like for whatever reason xcode on mac installs c++ 4.2.1 for some reason, i dont know if thats the issue or not if it is let me know and i will research on how to fix it
Topic archived. No new replies allowed.