Boost logo

Boost :

From: Daniel Schlyder (daniel_at_[hidden])
Date: 2006-10-12 13:26:35


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk