Using Boost on Windows (Visual Studio)

I want to start using Boost. I am programming a C ++ program in Visual Studio (obviously on a Windows machine).

Boost Getting Started Guide says:

The easiest way to get a copy of Boost is to use the installer. . In the Boost version of this Getting Started guide, there will be no information about the installers as they become available or view Boost downloads or the installer provided by BoostPro Computing. We especially recommend using the installer if you are using Microsoft Visual Studio because the installer can download and install precompiled library binaries, which eliminates the need to create them yourself.

I'm a little unsure if I want to follow this advice or just download and build everything myself. The potential problems that I see with the installer are as follows:

  • Things are no longer self-contained (for example, each team member must install Boost and then configure Visual Studio to recognize it).
  • I canโ€™t keep Boost under source control (ideally, I would like it to be in the sure files in my original control, like everything else). ( Change ). Judging by the comments, it seems that the forcing is very large (like 5 GB!), So obviously, I will need to store only parts of it under source control).

, : , , ? - Boost Visual Studio, , ( , , , , ? ..).

:

StackOverflow, , , , . , :

+5
10

, , - svn. - /trunk/boost1.35, svn external.

, boost, svn external /trunk/boost1.40

svn svn . /depends/boost

boost , , libs zip, . , - BOOST_LIB, .

+8

.

. :

   boost  C:\Program Files\boost\boost_1_40_0

Open the command prompt and change your current directory to the Boost root directory

bootstrap

.\bjam

The library binaries are now sprinkled through the folders under 
C:\Program Files\boost\boost_1_40_0\bin.v2 
Find the required libraries and copy them to 
C:\Program Files\boost\boost_1_40_0\lib

( Do not confuse folders called lib and libs! )

, , , - , , - .
+3

Boost Windows. "bjam" MSVC ; . , "./configure & make && make install", .

, Boost libs, , ICU (Unicode), . boost_regex lib.

+2
  • (, Boost, Visual Studio ).
  • Boost ( , , ).

Boost , , . ( Boost 5 ). , Boost .

, , .

Boost , ( , ), . , Boost , include .sln .vsprops, - , ( )

+1

, , - , . , , - , . , cpp . , ( , ), . , , SCM, , .

boost - , , , . VS.

+1

, Boost, , - . boost , .

-, . .

+1

:

  • Boost .
  • ( )
  • ( , )

- Linux, , .

0

, . , ( , , ) . , , , . , (nss, iplanet sdk), .

0

bootstrap.bat - bjam.exe,

bjam --stagedir="c:\Program Files\Boost" --build-type=complete --toolset=msvc-9.0 --with-regex --with-date_time --with-thread --with-signals --with-system --with-filesystem --with-program_options stage

bjam --stagedir="c:\Program Files\Boost" --build-type=complete --toolset=msvc-10.0 --with-regex --with-date_time --with-thread --with-signals --with-system --with-filesystem --with-program_options stage

..

. ..\lib.

0

, Boost . . , , Boost, . , . :

  • Boost
  • ,
  • One-time setup also takes care of creating header libraries + cpp.

For Visual Studio 2015 and the latest version of Boost, here are the step-by-step instructions that we follow our team:

fooobar.com/questions/182768 / ...

0
source