MinGWでBoostを使う。

TOPPERS/ASPのcfg作成にはboostが必要なので。
ASPのMakeifleにはboostのバージョンが1.33.1になっているけど、今回は最新の1.36.0を使ってみる。
過去のバージョンのものをインストールしたい場合は、ここからダウンロードできる。
今回は

  • boost_1_36_0.zip
  • boost-jam-3.1.16-1-ntx86.zip

を落としてきた。

MinGWは動かないの?

boost_1_36_0を展開したindex.htmlにいろいろドキュメントが書いてあるのでつらつら読んでいくとGetting Started on Windowsの冒頭に怪しげな注意事項が

A note to Cygwin and MinGW users

If you plan to use your tools from the Windows command prompt, you're in the right place. If you plan to build from the Cygwin bash shell, you're actually running on a POSIX platform and should follow the instructions for getting started on Unix variants. Other command shells, such as MinGW's MSYS, are not supported―they may or may not work.

という
boost-jam-3.1.16-1-ntx86.zipを展開するとbjam.exeがあるので、boost_1_36_0を展開したフォルダーにおいて

bjam -sTOOLS=mingw --prefix=/mingw

とするも正しくインストールされていない模様。

で結局

Boost1.36.0のビルドログをみるとfatal errorが頻発しており正しくビルドもできていないよう。
それでBoost1.33.1にしてみるとビルドとインストールもうまく行った。