https://bugzilla.novell.com/show_bug.cgi?id=877048 https://bugzilla.novell.com/show_bug.cgi?id=877048#c0 Summary: windows:mingw:win64: Bug Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Enhancement Priority: P5 - None Component: 3rd party software AssignedTo: fstrba@suse.com ReportedBy: maarten@treewalker.org QAContact: opensuse-communityscreening@forge.provo.novell.com CC: tlillqvist@suse.com, fridrich.strba@bluewin.ch, mkbosmans@gmail.com, hib@hiberis.nl Found By: Community User Blocker: Yes I'm trying to cross compile a C++11 program to 64-bit Windows using the x86_64-w64-mingw32-g++ compiler from the mingw64-cross-gcc-c++ package, version 4.8.2-6.19. The program tries to declare a mutex, essentially like this: #include <mutex> std::mutex my_mutex; However, this results in a compile error because std::mutex is not defined. I have looked in the header file (/usr/lib64/gcc/x86_64-w64-mingw32/4.8.2/include/c++/mutex) and the reason std::mutex is not defined is that _GLIBCXX_HAS_GTHREADS is not defined either. I think it should be possible to use the C++11 threads functionality using mingw-w64's winpthreads library. But it probably requires a configure option to be set or changed when building GCC. So my request is if you would consider enabling this functionality. A friend of mine managed to compile the same source using a mingw-w64 cross compiler on a Debian machine, so that supports the idea that the feature is present in mingw-w64 itself, just not enabled in the OBS build. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.