Boost C++ Libraries: Ticket #13252: Bootstrap.bat gcc throws compilation error (code is not c90 complilant) https://svn.boost.org/trac10/ticket/13252 <p> Trying to compile the new Boost 1.65.1 with Mingw w64 (gcc 4.8.3) on a Windows 10. </p> <p> While running <code>bootstrap.bat gcc</code> I get: </p> <pre class="wiki">... \boost_1_65_1\tools\build\src\engine&gt;.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= " ...found 161 targets... ...updating 3 targets... [MKDIR] bin.ntx86_64 [COMPILE] bin.ntx86_64\b2.exe debugger.c: In function 'debug_start_child': debugger.c:1128:5: error: 'for' loop initial declarations are only allowed in C99 mode for ( int i = 1; i &lt; argc; ++i ) ^ debugger.c:1128:5: note: use option -std=c99 or -std=gnu99 to compile your code strings.c: In function 'string_rtrim': strings.c:195:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic] char * p = self-&gt;value + self-&gt;size - 1; ^ ... </pre><p> So making a small modification (declare the <em>i</em> variable outside the for-loop) into <code>boost_1_65_1\tools\build\src\engine\debugger.c:1128</code> I can make it compile perfectly. </p> <p> I guess adding <code>--std=c99</code> or <code>--std=c11</code> into <code>boost_1_65_1\tools\build\src\engine\config_toolset.bat:204</code> could been even better. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13252 Trac 1.4.3 anonymous Mon, 13 Nov 2017 18:32:08 GMT <link>https://svn.boost.org/trac10/ticket/13252#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13252#comment:1</guid> <description> <p> Not sure if it is important to mention, but this applies to version 1.65.1 as well. I encountered this problem today. </p> </description> <category>Ticket</category> </item> </channel> </rss>