bootstシリーズ2:bootstコンパイル

2275 ワード

PART 1:
  • windows VS 2008はhttp://hi.baidu.com/chinacharis/blog/item/1725d1dc9cc3c03d5982ddfc.html
  • を参照してください。
  • 注意1 Visual Studio 2008コマンド提示を使用して動作します。

  • 注意2コンパイル後のlibは表示の通りです。
    The Boost C==Libries were success fully built!
  • The follwing directory shuld be added to comprier include paths:
  • D:\WORK\CURRENT\boot

  • The follwing directory shuld be added to linker library paths: 
    D:\WORK\CURRENT\boot\stage\lib
        
    stage(つまり「あるプラットフォーム:下でコンパイルします。これはwindows 32ビットシステムです。」
     
  •  
    PART 2:
     
  •  Linux:http://www.boost.org/doc/libs/1_46_1/more/getting_started/unix-variants.
  • を参照してください。
    g++コンパイルのみで、特定のプラットフォームは上のURLを参照してください。
    Easy Build and Install
    Issue the followwing command in the shell(don't typeドル;that represents the shell's prompt):
    $ cd path/to/boost_1_46_1
    $ ./bootstrap.sh --prefix=path/to/installation/prefix (build  ,   build_boost  ,       )
    to install somewhere else.Also,consider using the--show-libries and--with-libries=library-name-list options to limit the long wait you'll experience if you build everrything.Finally,
    $ ./bjam install
    will leave Boost binaries in the lib/subdirectory of your installation prefix.You will also find a copy of the Boaders in the include/subdictory of the installation prefix,so can heronce of the
     
     
     
    コンパイル後のパス(buildディレクトリ)
    lib:(   )
     
    dengwei@localhostboots_1_47;$find./*-name*.a
    ブリーフィング2/
    buildbbook/lib/libbook stuchrono.a
     
    ブリーフィング2/
    buildbrono.so
     
    Include:(対応コード)