install and compile boost for windows

Download boost from http://www.boost.org/ or sourceforge http://sourceforge.net/projects/boost/files/.

Most of the time we needn't compile boost, except it's thread, date-time, file-system,regex, signals, serialization, , python, and graph+graphviz.

If we want to use such components above, we need compile it. Reference to http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?InstallingBoost

1.Download BOOST.jam+BOOST.Build from

http://sourceforge.net/projects/boost/files/boost-build/

2.Copy bjam.exe to the position same to boost's libs directory. 

write an batch file called bjam.bat,

       bjam.exe "-sVC80_ROOT=C:\Program Files (x86)\VC" -sTOOLS=vc-9_0 toolset=msvc            install

       pause

3.It will install boost at a default position c:\boost.

If build fails, just read http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?InstallingBoost carefully.

posted @ 2013-08-10 17:25  猜猜我在干什么  阅读(218)  评论(0编辑  收藏  举报