How do I install the boost library to my MinGW compiler?

后端 未结 4 1944
攒了一身酷
攒了一身酷 2021-01-31 18:57

I\'m compiling from the command line using g++ on a Windows MinGW installation. How do I get boost...conceptually or if it is easy...what do I need to download and install?

4条回答
  •  无人及你
    2021-01-31 19:19

    I spent hours searching for a good solution for Boost 1.54. If you already have MinGW and you're just looking for instructions on compiling the binary boost libraries, try this:

    1. From your boost_X_XX_X directory, go to

      .\tools\build\src\engine
      

      and type:

      build.bat mingw
      
    2. This will create a folder called bin.ntx86 or bin.ntx86_64 depending on your architecture. Add this directory to your PATH environment variable.

    3. Return to your boost_X_XX_X directory and type:

      bjam toolset=gcc
      

    This worked for me on my system. I'd be interested to know if other systems have trouble with these instructions.

提交回复
热议问题