我已经成功地在 Windows 10 上为 C++ 构建了 MongoDB 驱动程序的 3.0.3 版本
CMAKE_INSTALL_PREFIX=C:\mongo-cxx-driver
但我不知道如何在 Visual Studio 2015 中设置可以使用此驱动程序的项目。
我在这里找到了这篇文章,但我不明白确切的解决方案。我尝试了以下属性但失败了:
- C/C++ > 附加包含目录:C:\mongo-c-driver\include\libbson-1.0;C:\mongo-c-driver\include\libmongoc-1.0;C:\mongo-cxx-driver\include\bsoncxx \v_noabi;C:\mongo-cxx-driver\include\mongocxx\v_noabi;%(AdditionalIncludeDirectories)
- 链接器 > 附加库目录:C:\mongo-cxx-driver\lib;%(AdditionalLibraryDirectories)
Visual Studio doesn't mark any errors, but when I try to compile the code, I get 401 errors.
I hope someone can help me.
EDIT: The complete list of all 401 errors is stored here.
EDIT: I startet a new project and used exactly the same settings. Now I just get 14 errors. The list of errors is stored here (EDIT: removed file).
EDIT: I added the following configuration:
- Configuration Manager > Active Solution Platform: x64
- C/C++ > Additional Include Directories: C:\Program Files\boost\boost_1_62_0;
Now I get the following errors.