Boost C++ Libraries: Ticket #4402: Compiling in native Windows, with MSVC8 (2005) Express https://svn.boost.org/trac10/ticket/4402 <p> Not really a bug... Just some advice for others... </p> <p> It took me quite a few HOURS to track down a strange batch file abort, with a long message something like :- </p> <p> \Utilities\Bin\x86";C:\WINDOWS\system32;C:\WINDOWS; C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX; C:\Program Files\Common Files\Roxio Shared\DLLShared\; ... etc ... ending with 'was unexpected at this time.' </p> <p> It turned out to be a SIMPLE problem, but not exactly sure why the batch file interpreter got tripped on a PATH ')', while in a batch bracketed (...) statement ... </p> <p> The problem was my environment PATH string contained brackets, ( ), for the DirectX SDK, like :- PATH=C:\Perl\site\bin;C:\Perl\bin; "C:\Program Files\Microsoft DirectX SDK (October 2006)\Utilities\Bin\x86"; C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem; ... </p> <p> Once I renamed this DirectX SDK directory to _NOT_ have brackets, and adjusted the Control Panel -&gt; [Environment Variables]..., and MSVC8 Options... -&gt; VC++ Directories, the 'bjam' batch build system worked like a charm with MSVC8... Thanks... </p> <p> Maybe a note like - make sure your PATH does _NOT_ contain brackets! () - could be added in the 'bootstrap.bat', or the 'tools\jam\src\build.bat', for others who run across this problem. </p> <p> Or be added to the documentation somewhere concerning bjam building in windows... I searched, but could not find anything similar... </p> <p> Hope this helps, and thanks for a great set of headers, and now static libraries ;=)) </p> <p> Regards, </p> <p> Geoff. </p> <p> Some Ref. Info. OS: Windows XP SP3 32-bits Box: Dell Dimension DXP061 CPU: Intel Core2 6400 @ 2.13GHz MSVC: Visual Studio 2005 (MSVC8), .NET 2.0.50727 SVN: Boost trunk, updated to 2010-07-02 Boost.Build V2 (Milestone 12) Boost.Jam 03.1.19 Boost_Version 104400, LIB_VERSION "1_44" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4402 Trac 1.4.3 Steven Watanabe Fri, 11 Feb 2011 04:27:44 GMT <link>https://svn.boost.org/trac10/ticket/4402#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4402#comment:1</guid> <description> <p> I'm not sure why this would be. I have "C:\Program Files (x86)\..." in my path and it runs without problems on Windows 7. Anyway, I can't do anything about this without the full output. You haven't provided enough information for me to figure out what the offending command is. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 11 Feb 2011 15:10:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4402#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4402#comment:2</guid> <description> <p> Hi Steven, </p> <p> Thanks for picking up on this. It came as a bit of a surprise for me, 7 months later, and hope I remember everything correctly ;=)). </p> <p> But, sorry, not sure what additional information I could provide? I was in a VS 2005 prompt, ran bootstrap.bat, which then runs build.bat... </p> <p> As indicated, I did NOT catch the full batch error message, but it ended in the stated - &lt;big string&gt; 'was unexpected at this time'. </p> <p> So I too do not know the exact offending command... cmd.ex is very terse ;=(( and your build.bat is quite complicated to follow... and uses bracketing ( ) very frequently... and calls... </p> <p> Anyway when I remove the ( ) from my PATH it went away. This was in XP SP3 as stated, and am very happy you can not repeat it in Windows 7. </p> <p> Maybe MS have 'fixed' this command interpreter 'bug' on the release of Windows 7? just dunno ;=(( </p> <p> Anyway, hope this helps... </p> <p> Regards, </p> <p> Geoff. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Thu, 07 Apr 2011 01:01:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4402#comment:3 https://svn.boost.org/trac10/ticket/4402#comment:3 <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">worksforme</span> </li> </ul> Ticket