Boost logo

Boost :

Subject: [boost] [thread] Errors when building wave
From: Edward Diener (eldiener_at_[hidden])
Date: 2014-02-15 17:29:31


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<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)
                                            ^
Does anybody know what I have to do to get this working ?


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