Compile boost1.32.0 in Windows XP/VC6.0

Source: Internet
Author: User
Compile boost in Windows XP/vc6.0 1.32.0 1 Resource

1.1 boost

You can download it from www.boost.org.

Decompress the package to C:/boost_1_32_0.

(I previously decompressed the package to E:/program files/Microsoft Visual Studio/vc98 .)

1.2 gnuwin32

You can download it at http://gnuwin32.sourceforge.net.

Download and install. Generally, it is installed on the C drive by default.

2 generate jam.exe

2.1 modify the configuration path

Modify the following two files:

C:/boost_1_32_0/tools/build/jam_src/build. bat

C:/boost_1_32_0/tools/build/jam_src/build. Jam

2.1.1 modify build. bat

As follows:

 

If exist "E:/program files/Microsoft Visual Studio/vc98/bin/vcvars32.bat "(

Set boost_jam_toolset = msvc

Set boost_jam_toolset_root = E:/program files/Microsoft Visual Studio/vc98/

Goto: EOF)

 

The main setting content is the name and location of the C ++ compiler. Change it to the path of your system.

Another:

 

If exist "E:/program files/gnuwin32/bin/bison.exe "(

Set YACC = "E:/program files/gnuwin32/bin/bison.exe"-d -- YACC

Goto: EOF)

 

Change to the location where gnuwin32 is installed.

2.1.2 modify build. Jam

Vc6.0 does not seem to need to be modified here.

2.1.3 Set VC Environment Variables

Run E:/program files/Microsoft Visual Studio/vc98/bin/vcvars32.bat.

2.1.4 generate jam.exe

Run build. bat to generate C:/boost_1_32_0/tools/build/jam_src/bin. ntx86/jam.exe.

3. Compile the boost Library

3.1 modify configuration

C:/boost_1_32_0/tools/build/v1/msvc-tools.jam may be modified.

VC6.0 does not seem to need to be modified here.

3.2 set cmd Environment Variables

1) enter the directory where jam.exe is located: C:/boost_1_32_0/tools/build/jam_src/bin. ntx86 and execute the following statement:

Set path = C:/boost_1_32_0; C:/boost_1_32_0/tools/build/jam_src/bin. ntx86; % PATH %

SET MSVC_ROOT = "E:/Program Files/Microsoft Visual Studio/VC98"

Set visualc = "E:/Program Files/Microsoft Visual Studio/VC98"

SET JAM_TOOLSET = MSVC

3.3 compile

Execute the statement:

C:/boost_1_32_0/tools/build/jam_src/bin. ntx86> jam-sboost_root =.-stools = msvc "-sbuild = debug release <runtime-link> static/dynamic"

You can.

 

Related Article

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.