Boost C++ Libraries: Ticket #9673: thread compilation with MingW/gcc on Windows gives errors https://svn.boost.org/trac10/ticket/9673 <p> When building the threads library with MingW/gcc on Window the following errors are seen: </p> <p> "..\..\..\..\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: '<a class="missing wiki">GetLogicalProcessor</a> Information' was not declared in this scope </p> <blockquote> <p> <a class="missing wiki">GetLogicalProcessorInformation</a>(NULL, &amp;size); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ..\..\..\..\libs\thread\src\win32\thread.cpp:429:21: error: 'SYSTEM_LOGICAL_PROC ESSOR_INFORMATION' was not declared in this scope </p> <blockquote> <p> std::vector&lt;SYSTEM_LOGICAL_PROCESSOR_INFORMATION&gt; buffer(size); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ..\..\..\..\libs\thread\src\win32\thread.cpp:429:57: error: template argument 1 is invalid </p> <blockquote> <p> std::vector&lt;SYSTEM_LOGICAL_PROCESSOR_INFORMATION&gt; buffer(size); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ..\..\..\..\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 </p> <blockquote> <p> std::vector&lt;SYSTEM_LOGICAL_PROCESSOR_INFORMATION&gt; buffer(size); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ..\..\..\..\libs\thread\src\win32\thread.cpp:430:52: error: request for member ' front' in 'buffer', which is of non-class type 'int' </p> <blockquote> <p> if (<a class="missing wiki">GetLogicalProcessorInformation</a>(&amp;buffer.front(), &amp;size) == FALSE) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ..\..\..\..\libs\thread\src\win32\thread.cpp:436:25: error: invalid types 'int[s ize_t {aka unsigned int}]' for array subscript </p> <blockquote> <p> if (buffer[i].Relationship == <a class="missing wiki">RelationProcessorCore</a>) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ..\..\..\..\libs\thread\src\win32\thread.cpp:436:43: error: '<a class="missing wiki">RelationProcessorCo</a> re' was not declared in this scope </p> <blockquote> <p> if (buffer[i].Relationship == <a class="missing wiki">RelationProcessorCore</a>)" </p> </blockquote> <p> The MingW Windows library does no have the <a class="missing wiki">GetLogicalProcessorInformation</a> functionality used by the thread library. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9673 Trac 1.4.3 viboes Sun, 23 Feb 2014 13:47:02 GMT owner, status, summary changed https://svn.boost.org/trac10/ticket/9673#comment:1 https://svn.boost.org/trac10/ticket/9673#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>summary</strong> <span class="trac-field-old">hread compilation with MingW/gcc on Windows gives errors</span> → <span class="trac-field-new">thread compilation with MingW/gcc on Windows gives errors</span> </li> </ul> Ticket viboes Sun, 23 Feb 2014 13:55:08 GMT <link>https://svn.boost.org/trac10/ticket/9673#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9673#comment:2</guid> <description> <p> Tim please could you take care of this issue? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>timblechmann</dc:creator> <pubDate>Mon, 24 Feb 2014 09:26:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9673#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9673#comment:3</guid> <description> <p> which version of mingw is this? i cannot reproduce it with mingw from mingwbuilds. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 25 Feb 2014 06:58:45 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/9673#comment:4 https://svn.boost.org/trac10/ticket/9673#comment:4 <ul> <li><strong>owner</strong> changed from <span class="trac-author">viboes</span> to <span class="trac-author">timblechmann</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket viboes Wed, 26 Feb 2014 21:11:11 GMT milestone changed https://svn.boost.org/trac10/ticket/9673#comment:5 https://svn.boost.org/trac10/ticket/9673#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket Edward Diener Tue, 04 Mar 2014 15:36:39 GMT <link>https://svn.boost.org/trac10/ticket/9673#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9673#comment:6</guid> <description> <p> 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. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 12 Mar 2014 22:44:46 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9673#comment:7 https://svn.boost.org/trac10/ticket/9673#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/82379f83a813292bd74d67b3da54ef5c2aceb420"><span class="icon">​</span>https://github.com/boostorg/thread/commit/82379f83a813292bd74d67b3da54ef5c2aceb420</a> </p> Ticket