欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 焦点 > vs2019编译boost

vs2019编译boost

2025/10/12 17:25:32 来源:https://blog.csdn.net/crazyeveryday/article/details/141600526  浏览:    关键词:vs2019编译boost

下载地址: 

 

https://archives.boost.io/release/1.86.0/source/boost_1_86_0.7z

1.管理员权限运行x86_x64 Cross Tools Command Prompt for VS 2019

2.bootstrap.bat

3.有两种方法,选择一种

3.a.

b2.exe install --toolset=msvc-14.2 architecture=x86 address-model=64 --stagedir="D:\boost_1_86_0" link=static runtime-link=shared runtime-link=static --build-type=complete --with-system --with-thread --with-date_time --with-filesystem --with-serialization threading=multi debug release

自动在D:\boost_1_86_0生成lib文件,需要手工拷贝 boost_1_86_0\boost 到D:\boost_1_86_0\include

3.b

b2 install --toolset=msvc-14.2 --build-type=complete --prefix="D:\boost_1_86_0" link=shared runtime-link=shared runtime-link=static threading=multi debug release

不需要手工拷贝include文件,会自动生成。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com