zoukankan      html  css  js  c++  java
  • [转载]vs2008下安装boost

    vs2008下安装boost

    1.下载boost_1_34_1压缩文件,解压缩到d:\boost_1_34_1\目录下
      
    2.编译bjam
      
      从vs2008的工具菜单进入命令提示窗口"Visual Studio 2008 Command Prompt"(一定要从这进),cd到c:\boost_1_34_1\tools\jam\src下执行build.bat,会在c:\boost_1_34_1\tools\jam\src\bin.ntx86\產生bjam.exe,將bjam.exe複製到c:\boost_1_34_1\下。
      
    3.设定编译环境
      
      修改user-config.jam (c:\boost_1_34_1\tools\build\v2\user-config.jam) 的MSVC configuration
      # MSVC configuration
      
      # Configure msvc (default version, searched in standard location
      # and PATH).
      # using msvc ;
      using msvc : 9.0 : : <compileflags>/wd4819 <compileflags>/D_CRT_SECURE_NO_DEPRECATE <compileflags>/D_SCL_SECURE_NO_DEPRECATE <compileflags>/D_SECURE_SCL=0 ;
      
    4.编译boost
      將目錄移至d:\boost_1_34_1\下執行
       bjam --without-python --toolset=msvc-9.0 --prefix=d:\boost install
      參數說明
      --without-python 表示不使用 python
      --toolset : 所使用compiler,Visual Studio 2008為msvc-9.0
      --prefix:指定編譯後library的安裝目錄
      这一步要花很长时间(大约50分钟)
    5.设定vs2008环境
      Tools -> Options -> Projects and Solutions -> VC++ Directories
      在Library files加上d:\boost\lib
      在Include files加上d:\boost\include\boost-1_34_1
  • 相关阅读:
    设计模式之外观模式(结构型)
    Oracle merge合并更新函数
    前端自定义搜索框实现
    Easyui学习整理笔记
    Jquery+Eayui实现列表选择功能
    Oracle SQL优化器简介
    设计模式之原型模式(创建型)
    Mysql学习笔记整理手册
    Oracle和Mysql语法异同整理笔记
    Mysql实现树形递归查询
  • 原文地址:https://www.cnblogs.com/taoxu0903/p/1232796.html
Copyright © 2011-2022 走看看