- Extract downloaded boost source, e.g.
C:\Program Files\boost_1_59_0
. - Create a folder for Boost.Build installation, e.g.
C:\Program Files\boost-build
. - Create a folder within for building, i.e.
C:\Program Files\boost_1_59_0\build
. - Create a folder for installation, e.g.
C:\Program Files\boost
.
- Open Command Prompt.
- Run
g++ --version
. - If the output contains g++ version number then GCC should be set up properly to run from command line and you can continue.
- Open Command Prompt and navigate to
C:\Program Files\boost_1_59_0\tools\build
. - Run
bootstrap.bat mingw
. - Run
b2 install --prefix="C:\Program Files\boost-build"
. - Add
C:\Program Files\boost-build\bin
to Windows PATH.
- Open Command Prompt and navigate to
C:\Program Files\boost_1_59_0
. - Run
b2 --build-dir="C:\Program Files\boost_1_59_0\build" --prefix="C:\Program Files\boost" toolset=gcc install
- Add include folder, i.e.
C:\Program Files\boost\include\boost-1_59
. - Add linker folder, i.e.
C:\Program Files\boost\lib
. - Link required libraries, e.g.
libboost_regex-mgw48-mt-1_59.a
.
DigitalAnnoyer
I followed the original instructions at top of page and as I said after searching found
the b2.ex was build in the C:\Program Files\boost-build directory.
So the simple solution was to put it into the C:\Program Files\boost_1_73_0 directory
and ran b2 with toolset=gcc (if using gcc) from command prompt.
Worked for me so cant say much more on that.
I am a rank amature at working with Boost and one of the greatest problems is finding
good examples for using the libraries.
If you get it properly installed then try this site for some good code using Boost
Version is slightly out of date but most samples I have compiled work well.
https://theboostcpplibraries.com/index
To anyone else reading this thread, There is not much more I can help with so would
suggest contacting the original poster.
Also have a look at danielTobon43 post in regards adding to windows path.
Thanks