Boost C++ Libraries: Ticket #2141: (Windows) in tools/jam/src "build.bat toolset" does not recognize toolset https://svn.boost.org/trac10/ticket/2141 <p> In a Windows command prompt, when I type </p> <p> build.bat mingw </p> <p> The guy claims I want msvc. </p> <p> Apparently, in the batch file, the subroutine that tries to determine whether a command line option is of the form "--option" fails. </p> <p> I had to tweak the batch file to enforce BOOST_JAM_TOOLSET=%1 </p> <p> This had the drawback of forcing me to remove %args% on the very last instruction of the batch file. </p> <p> Then bjam.exe was build. </p> <p> gcc (GCC) 3.4.5 (mingw special)<br /> OS: Windows Vista Family Premium 32bits SP1<br /> Processor: AMD Athlon 64 X2 4000+, but you probably don't care.<br /> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2141 Trac 1.4.3 Marshall Clow Sat, 26 Jul 2008 03:39:33 GMT component changed https://svn.boost.org/trac10/ticket/2141#comment:1 https://svn.boost.org/trac10/ticket/2141#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Building Boost</span> </li> </ul> Ticket Mateusz Czapliński <czapkofan@…> Tue, 21 Oct 2008 22:05:08 GMT <link>https://svn.boost.org/trac10/ticket/2141#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2141#comment:2</guid> <description> <p> I have the same problem, with Boost 1.36. From what I've managed to debug, apparently the "set _error_=" idiom has ceased to work in Vista. I've created a following simple batch file to test it: </p> <pre class="wiki">@echo off call :v a call :test1 call :v b call :test2 call :v c call :test1 call :v d call :test2 call :v e call :test3 call :v f call :test2 call :v g goto :eof :v if errorlevel 1 ( echo %1=1 ) else ( echo %1=0 ) goto :eof :test1 setlocal &amp; endlocal setlocal echo in test 1... set _error_= endlocal goto :eof :test2 setlocal &amp; endlocal setlocal echo in test 2... endlocal goto :eof :test3 setlocal &amp; endlocal setlocal echo in test 3... color 00 endlocal goto :eof </pre><p> which results in the following output on Vista: </p> <pre class="wiki">a=0 in test 1... b=0 in test 2... c=0 in test 1... d=0 in test 2... e=0 in test 3... f=1 in test 2... g=0 </pre><p> in comparison to XP's: </p> <pre class="wiki">a=0 in test 1... b=1 in test 2... c=0 in test 1... d=1 in test 2... e=0 in test 3... f=1 in test 2... g=0 </pre><p> Therefore, I suggest to change the "set _error_=" idiom mentioned above to the <strong>"color 00"</strong> one (found on <a class="ext-link" href="http://www.ss64.com/nt/if.html"><span class="icon">​</span>http://www.ss64.com/nt/if.html</a> ), which seems to still work on Vista, or perhaps to a more explicit sequence of commands similar to that below: </p> <pre class="wiki">setlocal if fooblah set _error_=1 endlocal &amp; set _Result=%_error_% if %_Result%==1 ( blahblah ) </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Sat, 25 Oct 2008 15:18:20 GMT</pubDate> <title>version, component, milestone changed; owner set https://svn.boost.org/trac10/ticket/2141#comment:3 https://svn.boost.org/trac10/ticket/2141#comment:3 <ul> <li><strong>owner</strong> set to <span class="trac-author">René Rivera</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.35.0</span> → <span class="trac-field-new">Boost.Jam 3.1.16</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">bjam</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost.Jam 3.1.17</span> </li> </ul> Ticket René Rivera Sun, 23 Nov 2008 05:40:15 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2141#comment:4 https://svn.boost.org/trac10/ticket/2141#comment:4 <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> Ticket