
Roland Schwarz wrote:
Does this also happen with mingw?
Yes. I still get errors with MinGW: E:\libs\boost\libs\thread\src\mutex.inl: In function `void* <unnamed>::new_critical_section()': E:\libs\boost\libs\thread\src\mutex.inl:51: error: `thread_resource_error' is not a member of `boost' E:\libs\boost\libs\thread\src\mutex.inl:57: error: `thread_resource_error' is not a member of `boost' E:\libs\boost\libs\thread\src\mutex.inl: In function `void* <unnamed>::new_mutex(const char*)': E:\libs\boost\libs\thread\src\mutex.inl:72: error: `thread_resource_error' is not a member of `boost' Looks like boost/thread/exceptions.hpp should be included in once.cpp when BOOST_HAS_WINTHREADS is defined. BTW, shouldn't the line in mutex.inl that reads OSVERSIONINFO version_info = {sizeof(OSVERSIONINFO)}; be replaced with OSVERSIONINFO version_info; version_info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); ? Would get rid of the following warnings: In file included from E:\libs\boost\libs\thread\src\once.cpp:21: E:\libs\boost\libs\thread\src\mutex.inl: In function `void <unnamed>::init_TryEnterCriticalSection()': E:\libs\boost\libs\thread\src\mutex.inl:20: warning: missing initializer for member `_OSVERSIONINFOA::dwMajorVersion' E:\libs\boost\libs\thread\src\mutex.inl:20: warning: missing initializer for member `_OSVERSIONINFOA::dwMinorVersion' E:\libs\boost\libs\thread\src\mutex.inl:20: warning: missing initializer for member `_OSVERSIONINFOA::dwBuildNumber' E:\libs\boost\libs\thread\src\mutex.inl:20: warning: missing initializer for member `_OSVERSIONINFOA::dwPlatformId' E:\libs\boost\libs\thread\src\mutex.inl:20: warning: missing initializer for member `_OSVERSIONINFOA::szCSDVersion' -- Daniel Schlyder