1
votes

I'm following this guide to install Boost on Windows XP running CodeBlocks: http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef. I have downloaded Boost and BoostJam and the versions are

Boost: 1.52.0 BoostJam: 3.1.18.1-ntx86

I am trying to build Boost (the section "Build Boost" in the guide), so I have set the PATH succesfully to c:\boost-jam

Now I want to run boost-jam, and I write: bjam --toolset=gcc "--prefix=c:\program files\codeblocks" install

This is where I get an error. The command prompt tells me: "warning: mismatched versions of Boost.Build engine and core". Is the guide I am following outdated?

1

1 Answers

4
votes

I faced the same problem when I tried to setup boost from source. The best approach is to build bjam from source (it comes with boost). First make sure you have mingw gcc on your path, and then, on the command line, navigate to

< boost-root >/tools/build/v2/engine

With <boost-root> being the folder into which you extracted the boost source code.
From here, invoke build.bat gcc.

This will build an executable (b2.exe and/or bjam.exe). Copy it to <boost-root> and invoke it with the options you need.