如何构建boost静态库?

时间:2012-03-17 15:36:49

标签: c++ boost static-libraries bjam

这有效,但是不构建boost库的静态版本(也许我错了?)

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

尝试发出命令:

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

但它不起作用。

1 个答案:

答案 0 :(得分:11)

您应该能够使用link=static选项让您将库编译成二进制文件而无需动态库:

sudo ./b2 link=static

检查您的舞台目录以确保它在正确的位置,然后重新安装到您包含的任何系统目录。

相关问题