[thread] Errors when building wave
When building the Wave tool on the 'master' branch with gcc-4.8.1/MingW
on Windows I am seeing these errors"
..\..\..\..\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
Le 15/02/14 23:29, Edward Diener a écrit :
When building the Wave tool on the 'master' branch with gcc-4.8.1/MingW on Windows I am seeing these errors"
..\..\..\..\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
buffer(size); ^ ..\..\..\..\libs\thread\src\win32\thread.cpp:429:57: error: template argument 1 is invalid std::vector 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 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) ^ Does anybody know what I have to do to get this working ?
Hi, I will see what we can do. It seems that these functions are not available with Mingw. Please could you create a Track ticket so this is not lost? Best, Vicente
On 2/16/2014 6:40 PM, Vicente J. Botet Escriba wrote:
..\..\..\..\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
buffer(size); ^ ..\..\..\..\libs\thread\src\win32\thread.cpp:429:57: error: template argument 1 is invalid std::vector 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 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)
I have created a ticket at https://svn.boost.org/trac/boost/ticket/9673.
participants (2)
-
Edward Diener
-
Vicente J. Botet Escriba