I've been trying to use MongoCXX r3.1.2 with Mongo-C 1.4.2 on Windows with MSVC but with no luck.
I get about 2,000 linker errors when I try to use it in a project.
The errors:
1>------ Build started: Project: Mongo, Configuration: Debug x64 ------
1>main.cpp
1>libmongocxx.lib(find.obj) : error LNK2001: unresolved external symbol __imp_mongoc_read_prefs_new
1>libmongocxx.lib(index.obj) : error LNK2001: unresolved external symbol __imp_mongoc_read_prefs_new
https://pastebin.com/tkVyfuqj
I tried using the new Mongo-C driver (1.7.0-r2) and I got the same result. The project is also 64-bit. Even after I copy the include directories right from the documentation I get the same thing. I'm using Visual Studio 2017, does anybody have any ideas?