Today we need to compile a 64-bit version of a previous program that uses boost, and there are some problems that are recorded as follows:
1. Download Boost_1_48_0, extract to D:\Dev\boost_1_48_0 directory;
2. Compile Bjam:
(1) Enter the command Prompt window from the VS2010 tool menu (click the Start button, point to All Programs, point to Microsoft Visual Studio 2010, point to Visual Studio Tools), and then click Visual Studio command Prompt (Command prompt) ", compiling 64-bit needs" Visual Studio x64 Cross Tools command Prompt (2010);
(2) The CD executes Bootstrap.bat under D:\boost\boost_1_48_0, and then the Bjam.exe 3 is generated under D:\boost\boost_1_48_0\ . Setting up a compilation environment (If you want to remove the compilation warning you need to modify)
Modify the MSVC configuration of User-config.jam (D:\boost\boost_1_46_0\tools\build\v2\user-config.jam)
# MSVC Configuration
# Configure MSVC (default version, searched for in standard locations and PATH).
# using MSVC;
Using msvc:10.0:: <compileflags>/wd4819 <compileflags>/d_crt_secure_no_deprecate <compileflags>/ D_scl_secure_no_deprecate <compileflags>/d_secure_scl=0;