Could I ask you a question?
When I try to compile new experimental version of cataclysm, this error occurred
How do I solve this error?
g++ -DRELEASE -DSDLTILES -DTILES -DLOCALIZE -ffast-math -Wall -Wextra -Werror - -std=c++11 -MMD -m64 -IE:/Game/msys2/mingw64/include/SDL2 -DSDL_SOUND -DLUA -I/m ingw64/include/SDL2 -c src/sounds.cpp -o objwin/tiles/sounds.o
In file included from src/sounds.cpp:25:0:
src/mingw.thread.h:24:7: error: redefinition of 'class std::thread'
class thread
^
In file included from src/sounds.cpp:23:0:
E:/Game/msys2/mingw64/include/c++/5.2.0/thread:60:9: error: previous definition of 'class std::thread'
class thread
^
In file included from src/sounds.cpp:25:0:
src/mingw.thread.h: In function 'std::thread::id std::this_thread::get_id()':
src/mingw.thread.h:109:23: error: redefinition of 'std::thread::id std::this_thr ead::get_id()'
inline thread::id get_id() {return thread::id(GetCurrentThreadId());}
^
In file included from src/sounds.cpp:23:0:
E:/Game/msys2/mingw64/include/c++/5.2.0/thread:263:5: note: 'std::thread::id std ::this_thread::get_id()' previously defined here
get_id() noexcept { return thread::id(__gthread_self()); }
^
In file included from src/sounds.cpp:25:0:
src/mingw.thread.h: In function 'void std::this_thread::yield()':
src/mingw.thread.h:110:17: error: redefinition of 'void std::this_thread::yield( )'
inline void yield() {Sleep(0);}
^
In file included from src/sounds.cpp:23:0:
E:/Game/msys2/mingw64/include/c++/5.2.0/thread:267:5: note: 'void std::this_thre ad::yield()' previously defined here
yield() noexcept
^
In file included from src/sounds.cpp:25:0:
src/mingw.thread.h: At global scope:
src/mingw.thread.h:112:10: error: redefinition of 'template<class Rep, class Per iod> void std::this_thread::sleep_for(const std::chrono::duration<_Rep1, _Period 1>&)'
void sleep_for( const std::chrono::duration<Rep,Period>& sleep_duration)
^
In file included from src/sounds.cpp:23:0:
E:/Game/msys2/mingw64/include/c++/5.2.0/thread:280:7: note: 'template<class _Rep , class _Period> void std::this_thread::sleep_for(const std::chrono::duration<_R ep1, _Period1>&)' previously declared here
sleep_for(const chrono::duration<_Rep, _Period>& __rtime)
^
In file included from src/sounds.cpp:25:0:
src/mingw.thread.h:117:10: error: redefinition of 'template<class Clock, class D uration> void std::this_thread::sleep_until(const std::chrono::time_point<_Clock , _Duration1>&)'
void sleep_until(const std::chrono::time_point<Clock,Duration>& sleep_time)
^
In file included from src/sounds.cpp:23:0:
E:/Game/msys2/mingw64/include/c++/5.2.0/thread:301:7: note: 'template<class _Clo ck, class _Duration> void std::this_thread::sleep_until(const std::chrono::time_ point<_Clock, _Duration1>&)' previously declared here
sleep_until(const chrono::time_point<_Clock, _Duration>& __atime)
^
Makefile:477: 'objwin/tiles/sounds.o' 타겟에 대한 명령이 실패했습니다
make: *** [objwin/tiles/sounds.o] 오류 1