How to use Boost in Visual Studio 2010

后端 未结 13 1083
情歌与酒
情歌与酒 2020-11-22 07:14

What is a good step by step explanation on how to use the Boost library in an empty project in Visual Studio?

相关标签:
13条回答
  • 2020-11-22 07:40

    Here is how I was able to use Boost:

    1. Download and extract the zip version of Boost libraries.
    2. Run bootstrap.bat file and then run bjam.exe.
    3. Wait for roughly 30 minutes or so.
    4. Create a new project in Visual Studio.
    5. Go to project-->properties-->Linker-->General-->Additional Library Directories and add boost/stage/lib directory to it.
    6. Go to project-->properties-->C/C++-->General-->Additional Include Directories and add boost directory to it.

    You will be able to build your project without any errors !

    0 讨论(0)
提交回复
热议问题