32/64-bit Windows 7 vc9.0 compiling boost: RegEx, with ICU

Source: Internet
Author: User
Tags vc9

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.