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.