Here are some quick tips and tricks how to make Boost.Build build boost with gcc compiler on Windows. Here are my experience.1. Install MinGW from the official site. It is easy to complette with Web installation. Lets say it C:\MinGW directory.2. To finish gcc step please add C:\MinGW\bin and C:\MinGW\include folders to your PATH variable.3. Install your favorite IDE. I like Code::Blocks but the choice is fully yours. Make sure you can compile some basic project with gcc on Windows.4. Go to boost.org and download boost archive. Then extract the archive say to C:\boost folder5. If you do not want to change the output directory for boost libs, go to your boost (C:\boost) folder and build boost:
bootstrap mingw
You can see what you will build with the next step:
b2 --show-libraries
Boost 1.58 shows:
The following libraries require building:
- atomic
- chrono
- container
- context
- coroutine
- date_time
- exception
- filesystem
- graph
- graph_parallel
- iostreams
- locale
- log
- math
- mpi
- program_options
- python
- random
- regex
- serialization
- signals
- system
- test
- thread
- timer
- wave
To build all of them run:
b2 toolset=gcc
The last action will take some time for it depends on your hard drive and CPU performance.Finally you will get boost libs in your C:\boost\stage\lib directory. The rest of boostlibraries are in C++ headers and you don't need to build them from the source.
In order to use boost libraries you have to add them to your project - libraries (C:\boost\stage\lib) and headers (C:\boost\boost) directories.
Boost your fun!