Boost logo

Boost :

Subject: Re: [boost] [thread] Errors when building wave
From: Edward Diener (eldiener_at_[hidden])
Date: 2014-02-17 02:28:34


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<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)

I have created a ticket at https://svn.boost.org/trac/boost/ticket/9673.


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