Opened 9 years ago
Closed 9 years ago
#9673 closed Bugs (fixed)
thread compilation with MingW/gcc on Windows gives errors
Reported by: | Edward Diener | Owned by: | timblechmann |
---|---|---|---|
Milestone: | Boost 1.56.0 | Component: | thread |
Version: | Boost Release Branch | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Change History (7)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Summary: | hread compilation with MingW/gcc on Windows gives errors → thread compilation with MingW/gcc on Windows gives errors |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
which version of mingw is this? i cannot reproduce it with mingw from mingwbuilds.
comment:4 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:5 by , 9 years ago
Milestone: | To Be Determined → Boost 1.56.0 |
---|
comment:6 by , 9 years ago
I am using the latest MingW with gcc 4.8.1. The errors occur when I try to build Boost from the top-level directory using the 'master' branch.
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Tim please could you take care of this issue?