各位  我在网上看BOOST库的安装方法 挨着一步一步走下来  但是最后初始化的时候出现了问题。出现警告。warning:Graph library does not contain MPI-base parallnel components  warning:skipping optional Message Passing Interface <MPI>library
求助....

解决方案 »

  1.   

    首先下载bjam.exe,复制到 $BOOST$ 目录下。或者自己生成bjam,打开Visual Studio 2005 命令提示窗口$BOOST$\tools\jam\src,执行 build.bat 会在$BOOST$\tools\jam\src\bin.ntx86 生成 bjam.exe 文件。复制文件 bjam.exe  文件到 $BOOST$\下。 
    1.完全编译安装: 
    bjam --toolset=msvc install 
    完成后会生成一个bin.v2编译时的临时目录,手动删除。生成另一个目录C:\boost,里面为所有的头文件和库文件。头文件目录为boost_1_38_0\boost目录复制过去的。 
    2.只编译相应的库文件 
    bjam --toolset=msvc stage 
    完成后同样会生成bin.v2临时目录。另一个目录为stage文件,里面有对应的库文件。 
    3.查看需要编译才能使用的库列表 
    bjam --show-libraries 
    4.编译特定的库,如只编译regex 
    bjam --toolset=msvc --with-regex stage 
    生成的库文件在stage目录中。 
    5.不编译某个库,如不编译regex 
    bjam --toolset=msvc --without-regex stage 
    生成的库文件在stage目录中。 
    6.编译特定的库,如只编译regex,生成debug,多线程,共享连接版本,并保存在stage。 
    bjam --toolset=msvc --with-regex stage debug threading=multi link=shared 
    7.生成 mt-sgd 的静态库(runtime-link-static) 
    bjam "-sTOOLS=vc-8_0" --with-thread install debug release runtime-link=static 
    8.编译regex库。 
    bjam --toolset=msvc --with-regex stage debug release threading=multi threading=single link=shared link=static runtime-link=shared runtime-link=static 
    boost的安装方法: 
    对于DLL版本 
    bjam --toolset=msvc link=shared runtime-link=shared threading=multi stage debug release install 
    对于lib版本 
    bjam --toolset=msvc link=static runtime-link=shared threading=multi stage debug release install