Boost C++ Libraries: Ticket #13390: Bootstrapping Boost 1.66 fails on Windows 10 using wingw gcc https://svn.boost.org/trac10/ticket/13390 <p> I'm attempting to bootstrap boost 1.66 on a Windows 10 machine so I can use it with Code::Blocks and wxWidgets </p> <p> It fails when running ./bootstrap.bat gcc </p> <p> It appears to be failing to find two functions: <a class="missing wiki">UnregisterWait</a> and <a class="missing wiki">RegisterWaitForSingleObject</a> </p> <p> Please see the attached images for error message and generated log </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13390 Trac 1.4.3 anonymous Thu, 11 Jan 2018 05:06:20 GMT <link>https://svn.boost.org/trac10/ticket/13390#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13390#comment:1</guid> <description> <p> Screen images were too big... Here is the text: </p> <p> PS C:\Boost\boost_1_66_0&gt; gcc --version </p> <p> gcc.exe (tdm-1) 5.1.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. </p> <p> PS C:\Boost\boost_1_66_0&gt; ./bootstrap.bat gcc </p> <p> Building Boost.Build engine execnt.c: In function 'try_wait_callback': execnt.c:833:5: warning: implicit declaration of function '<a class="missing wiki">UnregisterWait</a>' [-Wimplicit-function-declaration] </p> <blockquote> <p> <a class="missing wiki">UnregisterWait</a>( slot-&gt;wait_handle ); <sup> </sup></p> </blockquote> <p> execnt.c: In function 'register_wait': execnt.c:853:9: warning: implicit declaration of function '<a class="missing wiki">RegisterWaitForSingleObject</a>' [-Wimplicit-function-declaration] </p> <blockquote> <p> <a class="missing wiki">RegisterWaitForSingleObject</a>( &amp;cmdtab[ job_id ].wait_handle, <sup> </sup></p> </blockquote> <p> C:\Users\hepler\<a class="missing wiki">AppData</a>\Local\Temp\cctWuzmW.o:execnt.c:(.text+0x1243): undefined reference to `<a class="missing wiki">UnregisterWait</a>' C:\Users\hepler\<a class="missing wiki">AppData</a>\Local\Temp\cctWuzmW.o:execnt.c:(.text+0x130b): undefined reference to `<a class="missing wiki">RegisterWaitForSingleObject</a>' collect2.exe: error: ld returned 1 exit status </p> <p> Failed to build Boost.Build engine. Please consult bootstrap.log for further diagnostics. </p> <p> Please attach bootstrap.log in that case. </p> <p> PS C:\Boost\boost_1_66_0&gt; more bootstrap.log </p> <p> ### ### Using 'gcc' toolset. ### </p> <p> C:\Boost\boost_1_66_0\tools\build\src\engine&gt;if exist bootstrap rd /S /Q bootstrap </p> <p> C:\Boost\boost_1_66_0\tools\build\src\engine&gt;md bootstrap </p> <p> C:\Boost\boost_1_66_0\tools\build\src\engine&gt;gcc -DNT -o bootstrap\jam0.exe command.c compile.c constants.c debug.c execcmd.c execnt.c filent.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathnt.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c class.c cwd.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c </p> <p> C:\Boost\boost_1_66_0\tools\build\src\engine&gt;exit /b 1 </p> <p> PS C:\Boost\boost_1_66_0&gt; </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Mon, 15 Jan 2018 01:17:17 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/13390#comment:2 https://svn.boost.org/trac10/ticket/13390#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">build</span> </li> </ul> Ticket Steven Watanabe Tue, 23 Jan 2018 00:33:21 GMT <link>https://svn.boost.org/trac10/ticket/13390#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13390#comment:3</guid> <description> <p> It seems to need: -D_WIN32_WINNT=0x501 </p> </description> <category>Ticket</category> </item> </channel> </rss>