MongoDB学习笔记(2)——使用VS2017编译mongocxx-driver

一、环境和编译包说明:

1、mongodb driver说明网址http://mongocxx.org/

2、mongc-driver为:mongo-c-driver-1.17.3.tar.gz

3、mongcxx-driver为:mongo-cxx-driver-r3.6.2.tar.gz

4、boost库为(非必须,vs2017编译时需用到,其余暂无用到):boost_1_74_0.7z,路径为:https://www.boost.org/users/download/

5、cmake下载路径为:https://github.com/Kitware/CMake/releases或者https://cmake.org/files/

二、windows vs2017编译,参考博文:https://blog.csdn.net/sqcfj/article/details/86716831,后续linux-ubuntu和linux-centos本人会详细讲解。

三、补充:也可以是使用vcpkg来编译安装mongodb 的driver,在windows的power shell中具体指令如下:

> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
> .\bootstrap-vcpkg.bat
# Then, to hook up user-wide integration, run (note: requires admin on first use)
> .\vcpkg integrate install

> .\vcpkg install mongo-cxx-driver

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值