How to build boost static libs?

前端 未结 1 1785
旧时难觅i
旧时难觅i 2021-02-13 12:11

This works, but doesn\'t build static versions of boost libraries (maybe i am wrong?)

bjam --toolset=gcc --prefix=C:\\boost_1_49_0-mingw install
<
1条回答
  •  孤街浪徒
    2021-02-13 12:20

    You should be able to use the link=static option to let you compile the library into your binary without needing the dynamic lib:

    sudo ./b2 link=static
    

    Check your stage directory to make sure it goes in the right spot and then re-install to whatever system directory you include.

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