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

后端 未结 4 1949
攒了一身酷
攒了一身酷 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:11

    Thanx to Neal Kruis. This worked for me. I have Qt 5.4 with mingw 4.9 installed. I downloaded boost 1.59. Go to "...\boost_1_59_0\tools\build\src\engine\" folder

    set PATH=%PATH%;c:\Qt\Qt5.4.0\Tools\mingw491_32\bin
    build.bat mingw
    

    go to "...\boost_1_59_0\" folder, change boost path accordingly

    set PATH=%PATH%;c:\boost_1_59_0\tools\build\src\engine\bin.ntx86
    bjam toolset=gcc
    

提交回复
热议问题