|
|
>clang++ -std=c++11 memory.cpp In file included from memory.cpp:1: In file included from c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\memory:75: c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\ext/concurrence.h:228:2: error: no matching function for call to '_S_destroy' _S_destroy(&_M_mutex); ^~~~~~~~~~ c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\ext/concurrence.h:273:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: non-type template argument evaluates to 4, which cannot be narrowed to type 'bool' _S_destroy(_Rm* __mx) ^ c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\ext/concurrence.h:282:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: no member named 'actual' in '__gthread_recursive_mutex_t' _S_destroy(_Rm* __mx) ^ c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\ext/concurrence.h:290:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: no type named '__type' in '__gnu_cxx::__enable_if<false, void>' _S_destroy(_Rm* __mx) ^ 1 error generated. |
GCC versions 4.7.0 and 4.7.1 had changes to the C++ standard library which affected the ABI in C++11 mode ... as a result C++11 code compiled with GCC 4.7.0 or 4.7.1 may be incompatible with C++11 code compiled with different GCC versions |