zoukankan      html  css  js  c++  java
  • Win7 VS2013环境编译boost1_58_0

    备忘,发现好多不常用的东西不记笔记再想用要重新花时间找,所以试着开始记笔记,写入博客吧。

    首先去官网下最新的版本

    http://www.boost.org/

    写本文时boost最新版本为1_58_0,上次用的时候是1_57_0,看了下我的boost Hello World日期是2014.11.18,才半年就忘光光了...

    我下的是windows的7z压缩版本,62.2MB,解压出来运行bootstrap.bat,生成b2.exe和bjam.exe文件

    之后在相同目录下写个bat,我使用vs2013,所以在网上找了找大概写成这样,分x86和x64两个版本,只编译些常用的库。

    上次作死试着所有库都编译了,有些坑爹库简直巨大,编译后整个lib库差不多有20G,现在这些库编出来差不多255MB,对于我这种不怎么用boost,只写写Hello World的足够用了。

    x86版本

    bjam stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization --without-wave --without-atomic --without-chrono --without-random --without-regex --without-test --without-thread --without-program_options --without-serialization --without-signals --stagedir=".libvc12_x86" link=static runtime-link=shared threading=multi debug release

    x64版本

    bjam stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization --without-wave --without-atomic --without-chrono --without-random --without-regex --without-test --without-thread --without-program_options --without-serialization --without-signals --stagedir=".libvc12_x64" link=static runtime-link=shared threading=multi debug release address-model=64

  • 相关阅读:
    Windows RC版、RTM版、OEM版、RTL版、VOL版的区别
    jQuery MiniUI开发系列之:创建组件对象
    Mobile Web 调试指南(2):远程调试
    Using the viewport meta tag to control layout on mobile browsers
    鼠标滚轮事件MouseWheel
    photoshop基础
    10个jQuery插件分享
    Centos 安装nodejs
    Centos 安装.NET CORE 3.1
    Centos 安装nginx
  • 原文地址:https://www.cnblogs.com/kileyi/p/5004977.html
Copyright © 2011-2022 走看看