Boost C++ Libraries: Ticket #6883: build.bat not using the 32-bit Visual Studio 2010 installation path https://svn.boost.org/trac10/ticket/6883 <p> See also <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6846" title="#6846: Bugs: Clang compilation error on Darwin 64-bit (closed: fixed)">#6846</a> (bootstrap) </p> <p> I had the same problems there but didn't want to overtake ownership on that trac issue. </p> <p> With Visual Studio 2010, in a Visual Studio Command Prompt, bootstrap will fail. It cannot find any of the headers. I am looking at the build.bat and I think it's latching on to %<a class="missing wiki">ProgramFiles</a>% to set the paths. Like this: </p> <p> if EXIST "%<a class="missing wiki">ProgramFiles</a>%\Microsoft Visual Studio 10.0\VC\VCVARSALL.BAT" ( </p> <blockquote> <p> set "BOOST_JAM_TOOLSET=vc10" set "BOOST_JAM_TOOLSET_ROOT=%<a class="missing wiki">ProgramFiles</a>%\Microsoft Visual Studio 10.0\VC\" </p> </blockquote> <p> I used the recommended installation path for my edition and it put vcvarsall.bat in: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC </p> <p> Unfortunately %<a class="missing wiki">ProgramFiles</a>% comes up with the 64-bit path "C:\Program Files" -- note the omission of "(x86)" in there. So dead right there. </p> <p> I should note I can work fine if I call vcvarsall.bat manually before running bootstrap. </p> <p> I don't have a firm recommendation here one what to do. Perhaps you can probe the registry for installation keys for Visual Studio, and from there derive the path. If you don't have an installation handy on which to experiment I can submit myself to some probes. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6883 Trac 1.4.3