Help installing Boost VS 2010?

I really would be one happy camper if I could find out what's going wrong here with getting Boost built.

First time I opened up VS 2010 command prompt, I just get notified that it can't even find it's tools folder apparently?

As an attempted fix I followed this...

That got it to stop whining about not finding it. However, once I try to run Bootstrap I get

Building Boost.Build engine
'cl' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.

You can try to obtain a prebuilt binary from

Also, you can file an issue at
Please attack bootstrap.log in that case.


### Using 'vc10' toolset.

C:\boost_1_54_0\tools\build\v2\engine>if exist bootstrap rd /S /Q bootstrap 

C:\boost_1_54_0\tools\build\v2\engine>md bootstrap 

C:\boost_1_54_0\tools\build\v2\engine>cl /nologo /RTC1 /Zi /MTd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib /Febootstrap\jam0  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 

Any help would be greatly appreciated.

As it happens, I built Boost (1.53.0) on VS2010 just a couple of days ago.

I'm not near a Windows box at the moment, so I can't recall the name of the macro/paths. But you need to run vsvars32.bat for your Visual Studio installation. The instructions are here:

The idea is you can have multiple Visual Studio versions installed. And you choose which one you want to use by running the vsvars32.bat for that installation. The path to it is in the environment, but I can't recall the exact variable name.

Anyway, run Visual Studio's vsvars32, run Boost's boostrap, then run Boost's b2.

EDIT: I think the environment variable is VS100COMNTOOLS for VS2010, so you ought to be able to run %VS100COMNTOOLS%\vsvars32.bat
Last edited on
Well, the shortcut which opens a VS 2010 command prompt should have run vsvars32.bat for you (that's the only difference between it and a regular command prompt.)

Have you tried opening a VS 2010 command prompt and then checking what's now defined in the environment, having made the fix suggested by the post (and its links); I usually pipe set into a file, which contains these value on my PC (it's running 32-bit Windows)

Note the INCLUDE, LIB, PATH values have been tidied up; and the PATH is just the first so many entries, as it goes on for quite a while thanks to Windows, Git, SVN, Python, etc.

DevEnvDir=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\


INCLUDE=C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE;
        C:\Program Files\Microsoft SDKs\Windows\v7.0A\include;

LIB=C:\Program Files\Microsoft Visual Studio 10.0\VC\LIB;
    C:\Program Files\Microsoft SDKs\Windows\v7.0A\lib;

Path=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\;
     C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN;
     C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools;
     C:\Program Files\Microsoft Visual Studio 10.0\VC\VCPackages;
     C:\Program Files\HTML Help Workshop;
     C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;
     C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin;

VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 10.0\VC\
VS100COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 10.0\

WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v7.0A\

Last edited on

cd /D D:\Usuario\Downloads\Nueva carpeta\boost_1_54_0
start bootstrap.bat

1) Choose the folder where you install
2) I recommend making a new folder boost
.\b2 install --prefix=C:\Program Files\boost

.\b2 install --prefix="C:\Program Files\boost"
Last edited on
Topic archived. No new replies allowed.