Boost builds the 64bit version in VS2010

Source: Internet
Author: User
Tags visual studio 2010

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;

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.