vc2010编译boost1.63.0

来源:互联网 发布:淘宝虚拟物品代理 编辑:程序博客网 时间:2024/06/06 01:59

Bat脚本

@rem 解决boost thread与mfc冲突(无法弹出Dialog):@rem 编译boost前注释掉 libs\thread\src\win32\tss_pe.cpp中的 extern BOOL (WINAPI * const _pRawDllMain)(HANDLE, DWORD, LPVOID)=&dll_callback;call "D:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" @rem call "D:\Program Files\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" ia32 vs2010set dstdir=%cd%echo %dstdir%@rem zlib不需要提前编译set ZLIB_SOURCE=%dstdir%\zlib-1.2.11call bootstrap.bat@rem 指定位置编译b2.exe stage --toolset=msvc-10.0 --stagedir=%dstdir% link=static runtime-link=shared threading=multi release -j 2 define=BOOST_USE_WINAPI_VERSION=0x0501@rem b2.exe stage --toolset="intel-15.0-vc10" --stagedir=%dstdir% link=static runtime-link=shared threading=multi release -j 4@rem 指定位置安装@rem b2.exe install --prefix=%dstdir%\dst@rem 指定位置编译安装@rem b2.exe install --toolset=msvc-10.0 --prefix=%dstdir%\dst link=static runtime-link=shared threading=multi release@pause
0 0