[Boost-bugs] [Boost C++ Libraries] #9673: hread compilation with MingW/gcc on Windows gives errors

Subject: [Boost-bugs] [Boost C++ Libraries] #9673: hread compilation with MingW/gcc on Windows gives errors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-17 07:27:33


#9673: hread compilation with MingW/gcc on Windows gives errors
----------------------------------+----------------------
 Reporter: eldiener | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost Release Branch | Severity: Problem
 Keywords: |
----------------------------------+----------------------
 When building the threads library with MingW/gcc on Window the following
 errors are seen:

 "..\..\..\..\libs\thread\src\win32\thread.cpp: In static member function
 'static
 unsigned int boost::thread::physical_concurrency()':
 ..\..\..\..\libs\thread\src\win32\thread.cpp:425:51: error:
 'GetLogicalProcessor
 Information' was not declared in this scope
          GetLogicalProcessorInformation(NULL, &size);
                                                    ^
 ..\..\..\..\libs\thread\src\win32\thread.cpp:429:21: error:
 'SYSTEM_LOGICAL_PROC
 ESSOR_INFORMATION' was not declared in this scope
          std::vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> buffer(size);
                      ^
 ..\..\..\..\libs\thread\src\win32\thread.cpp:429:57: error: template
 argument 1
 is invalid
          std::vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> buffer(size);
                                                          ^
 ..\..\..\..\libs\thread\src\win32\thread.cpp:429:57: error: template
 argument 2
 is invalid
 ..\..\..\..\libs\thread\src\win32\thread.cpp:429:65: error: invalid type
 in decl
 aration before '(' token
          std::vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> buffer(size);
                                                                  ^
 ..\..\..\..\libs\thread\src\win32\thread.cpp:430:52: error: request for
 member '
 front' in 'buffer', which is of non-class type 'int'
          if (GetLogicalProcessorInformation(&buffer.front(), &size) ==
 FALSE)
                                                     ^
 ..\..\..\..\libs\thread\src\win32\thread.cpp:436:25: error: invalid types
 'int[s
 ize_t {aka unsigned int}]' for array subscript
              if (buffer[i].Relationship == RelationProcessorCore)
                          ^
 ..\..\..\..\libs\thread\src\win32\thread.cpp:436:43: error:
 'RelationProcessorCo
 re' was not declared in this scope
              if (buffer[i].Relationship == RelationProcessorCore)"

 The MingW Windows library does no have the GetLogicalProcessorInformation
 functionality used by the thread library.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9673>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC