Install Boost.Build

Not sure exactly why this is needed, but let’s do it anyway… It will be installed in c:\src\libs\boost_1_63_0\BOOST.BUILD. Note: « mingw » toolset, while mentionned in the documentation, does not work. Use toolset « gcc » instead, it supports MinGW compiler.

1

2

3

cdc:\src\libs\boost_1_63_0\tools\build

bootstrap.batgcc

b2install--prefix=c:\src\libs\boost_1_63_0\BOOST.BUILD

Building Boost

When no build folder is selected, Boost.Build will build in c:\src\libs\boost_1_63_0\bin.v2, and libs will be available in C:\src\libs\boost_1_63_0\stage

1

2

3

setPATH=c:\src\libs\boost_1_63_0\BOOST.BUILD\bin;%PATH%

cdc:\src\libs\boost_1_63_0

b2toolset=gcc -j4--build-type=completestage

You might get errors like the following :

1

2

3

4

5

6

7

8

9

10

11

error:Name clash for'<pstage\lib>libboost_atomic-mgw51-mt-1_63.dll.a'

error:

error:Tried tobuild the target twice,with propertysets having

error:these incompatible properties:

error:

error:-<linkflags>-shared-libgcc<linkflags>-shared-libstdc++

error:-none

error:

error:Please make sure tohave consistent requirements forthese

error:properties everywhere inyour project,especially forinstall

error:targets.

I got this kind of error trying to build with TDM-GCC 5.1, and solved it by not building shared libraries (I usually use static so I can distribute small tools) :