本文介绍了如何在Visual Studio中使用mongodb-cxx-driver安装项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我已经使用Visual Studio在Windows上成功构建了新的libmongo-cxx-driver,但是我无法理解如何在VS 2015中设置项目以链接到它.我希望能对此有所帮助.

I have successfully built the new libmongo-cxx-driver on Windows with Visual Studio, but I fail understanding how I can set up a project in VS 2015 to link to it. I would appreciate some help on that.

推荐答案

Vcpkg可帮助您在Windows上获取C和C ++库.到2017年仍在寻找解决方案的人.这是编译库的新方法

Vcpkg helps you get C and C++ libraries on Windows.if someone still finding a solution by 2017.here is the new way of compiling libraries

按照git上的说明下载vcpkg. https://github.com/Microsoft/vcpkg

Download vcpkg follow the instructions as mentioned on git. https://github.com/Microsoft/vcpkg

步骤1 C:\vcpkg>.\vcpkg search mongodb

您会看到类似的东西

mongo-cxx驱动程序3.1.1-1 MongoDB C ++驱动程序.

mongo-cxx-driver 3.1.1-1 MongoDB C++ Driver.

第2步C:.\vcpkg install mongo-cxx-driver

然后喝杯咖啡...

第3步

C:\vcpkg>.\vcpkg integrate install

完成..

注意前提条件:

Windows 10、8.1或7

Windows 10, 8.1, or 7

Visual Studio 2017或Visual Studio 2015 Update 3

Visual Studio 2017 or Visual Studio 2015 Update 3

由@JoyoWaseem回答如何构建程序使用MongoDB的c ++驱动程序?

Answered by @JoyoWaseemHow can I build a program using c++ driver of MongoDB?

这篇关于如何在Visual Studio中使用mongodb-cxx-driver安装项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 22:44