0

Getting started with Boost under Windows

Posted by Derek Jing on 2:21 PM in ,
  • Download installer binary from Boostpro Computing and install.

  • To build from Visual Studio IDE
    Setting up #include paths in Microsoft Visual Studio
    Right click the project name in the solution explorer > Properties > C/C++ > General > Additional Include Directories, enter the path to the Boost root directory, for example
    C:\Program Files\boost\boost_1_42

    In C++ code, include something like
    #include <boost/lambda.hpp>

  • To link from within Visual Studio IDE
    Right click the project name in the solution explorer > Properties > Linker > General > Additional Library Directories, enter the path to the Boost root directory, for example
    C:\Program Files\boost\boost_1_42\lib\


0 Comments

Post a Comment

Copyright © 2009 Derek's Technical Notes All rights reserved.