First, I use vc9.0, which corresponds to icuc4c 4.4.2. To download icu4c 4.4.2 from the ICU homepage, just download the compiled package.
32 http://download.icu-project.org/files/icu4c/4.4.2/icu4c-4_4_2-Win32-msvc9.zip
64-bit http://download.icu-project.org/files/icu4c/4.4.2/icu4c-4_4_2-Win64-msvc9.zip
Assume that the unzipped ICU folder is placed in D: \ Dev \ ICU.
Then, go to the boost main folder in cmd of vs2008 and compile it with the following command:
32-bit
bjam -s ICU_PATH=d:\dev\icu --toolset=msvc-9.0 --with-regex --build-type=complete stage address-model=32
64-bit
Note: It must be compiled in Visual Studio 2008x64 win64 Command Prompt
bjam -s ICU_PATH=d:\dev\icu --toolset=msvc-9.0 --with-regex --build-type=complete stage architecture=x86 address-model=64
The generated lib and DLL files are moved to the stage folder under the boost main folder.
Note: 64-bit system can compile 32-bit boost + ICU. The required ICU is 32-bit, and the compilation command is the same as 32-bit
In vc9, in addition to adding the ICU's include and Lib paths to include and Lib, you also need to add
#pragma comment(lib, "icuuc.lib")#pragma comment(lib, "icuin.lib")#pragma comment(lib, "icudt.lib")
More problems
Visit here
Http://devwiki.neosys.com/index.php/Building_Boost_32/64_on_Windows