Coder Social home page Coder Social logo

boost_build's Introduction

Easily build boost on Visual Studio 2017

Easily build the boost library on last VS release, no pain

build_boost_vs2017_win32_x64.bat

Description

Windows batch script to build the boost library. Builds boost with all runtime link types for both 32 and 64 bit architectures.

BOOST Versions

  • Tested with 1.68.0 (build_boost_vs2017_win32_x64.bat)
  • Tested with 1.64.0 beta 2 (build_boost_vs2017_win32_x64.bat)

Instructions

  1. Copy the .bat file inside boost's directory (eg C:\boost_1_68_0).

  2. Using Visual Studio 2017's Developer Command Prompt (found in "Windows' Start"\All Programs\Visual Studio 2017\Visual Studio Tools), go to the boost root directory (eg. C:\boost_1_68_0) and call-execute to bat provided in this repo build_boost_vs2017_win32_x64.bat.

eg

C:\>cd boost_1_68_0
C:\boost_1_68_0>build_boost_vs2017_win32_x64.bat

Note: Go for a couple of coffees... the process takes a long time (around 30 minutes in a core i7 with 4 cores with SSD). It will output the .DLLs and .LIBs up one level from the current path (eg. d:\sdk\bin...) at "bin\x86" (for 32 bit) and "bin\x64" (for 64 bit).

Next Steps - Linking Boost With Visual Studio 2017

  1. Add headers

    • Go to Solution Explorer -> Properties -> C/C++ -> General

    • Pick & Set on "Additional Include Directories" = BOOST_ROOT (eg. C:\boost_1_68_0)

    • Properties -> C/C++ -> General -> Precompiled Header

    • Set "Not Using Precompiled Headers

  2. Add compiled libraries

    • Go to Solution Explorer -> Properties -> Linker -> General -> Additional Library Directories
    • Set on "Additional Library Directories" = BOOST_ROOT\lib (eg. C:\boost_1_68_0\stage_x86\lib)

boost_build's People

Contributors

manuelgustavo avatar nextco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

boost_build's Issues

Please take in consideration templates in boost::multiprecision use std::unary_function, which has been deprecated since C++11 and was removed from the standard for C++17

Please take in consideration the fact discussed in several questions on stack overflow (http://stackoverflow.com/questions/41972522/c2143-c2518-when-trying-to-compile-project-using-boost-multiprecision) regarding templates in boost::multiprecision use std::unary_function, which has been deprecated since C++11 and was removed from the standard for C++17.

By following this answer:
http://stackoverflow.com/a/42041243/3670438

and changing compilation flags to:
/EHc /std:c++14

i managed to build boost on visual studio 2017 x64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.