您的位置:首页 > 其它

win7 64编译64位boost

2016-10-21 11:04 555 查看


win7 64编译64位boost

2013-02-26 10:57 4146人阅读 评论(0) 收藏 举报

版权声明:本文为博主原创文章,未经博主允许不得转载。

1) 从开始菜单启动vs2010下的x64 win64 cmd窗口

2) 到BOOST下执行boostrap.bat生成相应版本的bjam

3) bjam.exe --toolset=msvc-10.0 architecture=

x86 address-model=64 link=static --build-type=complete --with-system --with-thre

ad --with-date_time --with-filesystem --with-serialization

D:\Boost\boost_1_62_0> bjam.exe --toolset=msvc-10.0 architecture=x86 address-model=64 link=static --build-type=complete --with-sys

tem --with-regex  --with-thread --with-date_time --with-filesystem --with-regex --with-serialization stage

(boost.asio库必须支持--with-regex  )

程序开始的地方添加: #define _WIN32_WINNT 0x0501

 

包含目录添加  G:\boost_1_55_0

库目录添加    G:\boost_1_55_0\stage\lib


VS2010中添加第三方库目录VC++ Directories

VS2010取消了08之前在options里面添加第三方库目录的设置,新的设置方法如下:

View->Property Manager, 在Property Manager框里面有Debug|Win32和Release|Win32选项,打开任意一个Microsoft.Cpp.Win32.user会弹出Microsoft.Cpp.Win32.user Property Pages对话框,点击左边VC++
Directories,会出现相应得页面, 可以在Include Directories与Library Directories里面设置全局的头文件和库路径,配置好一个之后另外一个也配置好了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: