Skip to content

Instantly share code, notes, and snippets.

@chuongvhn
Last active March 24, 2019 08:08
Show Gist options
  • Save chuongvhn/32d0496c3d2feedde59ba39b817ed04b to your computer and use it in GitHub Desktop.
Save chuongvhn/32d0496c3d2feedde59ba39b817ed04b to your computer and use it in GitHub Desktop.
BOOST build instruction

Assume we're on 64-bit PC

Windows:

$bootstrap.bat --libdir=<where to store lib file> --includedir=<where to store header file>

  • 32-bit

$b2 --toolset=msvc-12.0 --layout=versioned --build-type=complete address-model=32 architecture=x86 cflags=-m32 cxxflags=-m32 instruction-set=i686 threading=multi install

  • 64-bit

$b2 --toolset=msvc-12.0 --layout=versioned --build-type=complete threading=multi install

Linux:

$bootstrap.sh --libdir=<where to store lib file> --includedir=<where to store header file>

  • 32-bit

$b2 --toolset=gcc --layout=versioned --build-type=complete address-model=32 architecture=x86 cflags=-m32 cxxflags=-m32 instruction-set=i686 threading=multi install

  • 64-bit

$b2 --toolset=gcc --layout=versioned --build-type=complete threading=multi install

more

@chuongvhn
Copy link
Author

place holder for boost build instruction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment