windows下Mongodb的C++驱动编译

安装说明:

  https://github.com/mongodb/mongo-cxx-driver/wiki/Download-and-Compile-the-Legacy-Driver#get-the-source-code

必要软件:

   scons-2.5.0   http://scons.org/pages/download.html

   python 2.7    因为工作需要,我直接安装了Anaconda2 (32-bit) 2.7

       boost_1_61_0   https://sourceforge.net/projects/boost/files/boost/1.61.0/

驱动源码

 https://github.com/mongodb/mongo-cxx-driver

 备注:如果因为DNS问题无法上github,可以使用谷歌的DNS(4.4.4.4和8.8.8.8)

 解决boost库编译问题

http://blog.163.com/tfn2008@yeah/blog/static/11032131920146811957865/

 解决mongodb无法链接问题

 使用x64编译VC工程

编译boost库

http://blog.csdn.net/gyy930324/article/details/51556694

参考

http://blog.csdn.net/firebird321/article/details/49634221

猜你喜欢

转载自www.cnblogs.com/yankeyan/p/5737669.html