boost库asio编译及配置

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_23350817/article/details/100534739

1、gcc安装
如果安装过qtcreator的话,可以直接在环境变量的Path中添加qt的gcc目录—“D:/qt/qtcreator-2.4.1/mingw/bin”,如果没有安装qtcreator的话,则需要安装MinGW工具,然后在环境变量中将安装的gcc目录添加进环境变量中。

2、下载1.67版本的boost库
https://dl.bintray.com/boostorg/release/1.67.0/source/

3、进入boost目录,点击bootstrap.bat,等待系统生成bjam.exe,在cmd中执行

bjam --with-system --with-thread --with-date_time --with-regex --with-serialization stage

4、在vs中配置boost
视图->属性管理器->当前项目->Debug|Win32->Microsoft.Cpp.Win32.user双击
在弹出的属性对话框中:
通用属性->VC++目录:“包含目录”: boost的根目录,例: D:\Visual Stdio 2013\lipeng\boost\boost_1_58_0
“库目录”: stage下的链接库目录,例:D:\Visual Stdio 2013\lipeng\boost\boost_1_58_0\stage\lib
通用属性->链接器->常规:“附加库目录”:同上面的"库目录",例:D:\Visual Stdio 2013\lipeng\boost\boost_1_58_0\stage\lib

猜你喜欢

转载自blog.csdn.net/qq_23350817/article/details/100534739