vs 2010はbootstライブラリを使用する(二)Boost libriesを使用する



前の方は簡単にブックカバーを使いましたが、使いたいならば.
 
  • Boost.Filesystem
  • Boost.GraphParal
  • Boost.IOStreams
  • Boost.MPI
  • Boost.PrograamOptions
  • Boost.Python (see the) Boost.Python build documentation before building and installing it)
  • Boost.Regex
  • Boost.Serialization
  • Boost.Signals
  • Boost.System
  • Boost.Thread
  • Boost.Wave
  • ちょっと待ってください.まだコンパイルしてください.でないと、次のようなエラーが発生します.「LINK:fatal error LNK 1104:ファイルを開けられません.」
     
    コマンドラインウィンドウを開く 
    ブックライブラリのルートディレクトリに切り替えます.
    私のはEです.
    bootstrapを入力します
    そして何行の出力がありますか?
    再入力./bjam
    コンパイルを開始しました.
    えっと、1時間待ちました. 
    まだ待たなければなりません 
    もう少しコンパイルしましょう.
     
    N長い間コンパイルしました.
     
     
    ln-NT stage/lib/libboot stuunit ew ork-vc 100-mt.lib
    「NT smlinks not supported yet,making copy」
    コピーしました        1つのファイルです
    ln-NT stage/lib/libbook stread-vc 100-mt.lib
    「NT smlinks not supported yet,making copy」
    コピーしました        1つのファイルです
    ln-NT stage/lib/libbook stuwave-vc 100-mt.lib
    「NT smlinks not supported yet,making copy」
    コピーしました        1つのファイルです
    …udated 786 tagets…
     
     
    The Boost C++Libries were success fully built!
     
    The follwing directory shoruld be added to compler include paths:
     
        E:/mylib/boots_1徏1
     
    The follwing directory shuld be added to linker library paths:
     
        E:/mylib/boots_1/stage/lib
     
     
    前回のexample.cppの内容を次のコードに置き換えます.
    boot:include夬夬include\22000;夬incluudemain(){std:stststinline;bost:regex pat:("^Subject:(Re:Aw)*))*(.*))))(stststinininininineeeeine))))))(((*)))))))))(stststininininininininininininininininineeeeetttttininininininininine:eeine xmumatch std:cout< 
    プロジェクトにライブラリ参照を追加
    属性>コネクタ>全般> 追加ディレクトリライブラリはここに書き込みます. E:/mylib/boots_1/stage/lib
    コンパイル
    実行
    入力
    To: George Shmidlap
    From: Rita Marlowe
    Subject: Will Success Spoil Rock Hunter?
     
     
      
    Will Success Spoil Rock Hunter?
     
     
      ,boost     。
     
  • In Configration Propties > リンカー > Additional Library Directores、enter the path to the Boost binaries、e.g. C:/Program Files/boots/boot stu 1/lib/
  • From the Build menu,select Build Solution.