简体   繁体   中英

install boost on windows with codeblocks

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM