Boost logo

Boost :

Subject: Re: [boost] [thread] Errors when building wave
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2014-02-16 18:40:51


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


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