How to build boost Version 1.58.0 using Visual Studio 2015 (Enterprise)

前端 未结 5 2042
失恋的感觉
失恋的感觉 2020-12-01 00:30

I like to build boost 1.58.0 using the (new) Visual Studio 2015 (Enterprise). In the past I proceeded in the following way:

  1. Download boost 1.58.0 from www.boos
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 00:56

    below are the steps

    1) Download library from below this site http://www.boost.org/

    2) Unzip it.[I have extracted files at "F:\Internet-Downloads\boost_1_65_1" path]

    3) Open "Developer Command Prompt for VS2015" as shown in the below snapshot.

    4) Go to the directory in which you have extracted your files.

    5) run bootstrap.bat file as shown in the below snapshot

    6) you will get installation information as shown in below snapshot

    7) start VS2015, and create a test application as shown in below snapshot

    8) include boost directory in your project[Project Propertry->C/C++->General->Additional Include Directories]as shown in below snapshot

    9) Run the application, add "_SCL_SECURE_NO_WARNINGS" in the preprocessor directory if you encounter with "error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe ......" error.[Priject Property->C/C++->Preprocessor->Processor Definitions]

    10 output:

提交回复
热议问题