How to build boost static libs?
Asked Answered
D

1

22

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

Trying to issue folloving command:

bjam --toolset=gcc --prefix=C:\boost_1_49_0-mingw --build-type=complete install

but it doesn't work.

Dyad answered 17/3, 2012 at 15:36 Comment(0)
S
24

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.

Solorio answered 10/6, 2012 at 12:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.