title: Testing mongocxx c++ driver with a sample code
body: <p>I'm trying to connect mongdb with mongocxx driver in my C++ sample code. I added Additional include, Libraries  and dependencies. When I build it it shows following error.</p>
  
  <p>this is the full code </p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;cstdint&gt;
  #include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include &lt;bsoncxx/json.hpp&gt;
  #include &lt;mongocxx/client.hpp&gt;
  #include &lt;mongocxx/instance.hpp&gt;
  #include &lt;mongocxx/uri.hpp&gt;
  #include &lt;mongocxx/stdx.hpp&gt;
  
  using bsoncxx::builder::stream::close_array;
  using bsoncxx::builder::stream::close_document;
  using bsoncxx::builder::stream::document;
  using bsoncxx::builder::stream::finalize;
  using bsoncxx::builder::stream::open_array;
  using bsoncxx::builder::stream::open_document;
  
  int main() {
      std::cout &lt;&lt; "Hello, World!" &lt;&lt; std::endl;
  
      mongocxx::instance instance{}; // This should be done only once.
      mongocxx::uri uri("mongodb://localhost:27017");
      mongocxx::client client(uri);
  
      return 0;
  }
  thi
  </code></pre>
  
  <p>s is the error output. </p>
  
  <pre><code>Severity    Code    Description Project File    Line    Suppression State
  Error   LNK1120 10 unresolved externals MongoCTest1 C:\Users\Nuwanst\source\repos\MongoCTest1\x64\Release\MongoCTest1.exe   1   
  Error (active)  E0145   member "bsoncxx::v_noabi::types::b_array::type_id" may not be initialized   MongoCTest1 c:\mongo-cxx-driver\include\bsoncxx\v_noabi\bsoncxx\types.hpp   181 
  Error (active)  E0145   member "bsoncxx::v_noabi::types::b_binary::type_id" may not be initialized  MongoCTest1 c:\mongo-cxx-driver\include\bsoncxx\v_noabi\bsoncxx\types.hpp   206 
  Error (active)  E0145   member "bsoncxx::v_noabi::types::b_bool::type_id" may not be initialized    MongoCTest1 c:\mongo-cxx-driver\include\bsoncxx\v_noabi\bsoncxx\types.hpp   264 
  Error (active)  E0145   member "bsoncxx::v_noabi::types::b_code::type_id" may not be initialized    MongoCTest1 c:\mongo-cxx-driver\include\bsoncxx\v_noabi\bsoncxx\types.hpp   421 
  Error (active)  E0145   member C:\Users\Nuwanst\source\repos\MongoCTest1\MongoCTest1\MongoCTest1.obj    1   
  Error   LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl mongocxx::v_noabi::instance::instance(void)" (__imp_??0instance@v_noabi@mongocxx@@QEAA@XZ)    MongoCTest1 C:\Users\Nuwanst\source\repos\MongoCTest1\MongoCTest1\MongoCTest1.obj   1   
  Error   LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl mongocxx::v_noabi::instance::~instance(void)" (__imp_??1instance@v_noabi@mongocxx@@QEAA@XZ)   MongoCTest1 C:\Users\Nuwanst\source\repos\MongoCTest1\MongoCTest1\MongoCTest1.obj   1   
  Error   LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl mongocxx::v_noabi::options::client::client(void)" (__imp_??0client@options@v_noabi@mongocxx@@QEAA@XZ) MongoCTest1 C:\Users\Nuwanst\source\repos\MongoCTest1\MongoCTest1\MongoCTest1.obj   1   
  Error   LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl mongocxx::v_noabi::options::client::~client(void)" (__imp_??1client@options@v_noabi@mongocxx@@QEAA@XZ)    MongoCTest1 C:\Users\Nuwanst\source\repos\MongoCTest1\MongoCTest1\MongoCTest1.obj   1   
  Error   LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl mongocxx::v_noabi::uri::uri(class bsoncxx::v_noabi::string::view_or_value)" (__imp_??0uri@v_noabi@mongocxx@@QEAA@Vview_or_value@string@1bsoncxx@@@Z)  MongoCTest1 C:\Users\Nuwanst\source\repos\MongoCTest1\MongoCTest1\MongoCTest1.obj   1   
  Error   LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl mongocxx::v_noabi::uri::~uri(void)" (__imp_??1uri@v_noabi@mongocxx@@QEAA@XZ)  MongoCTest1 C:\Users\Nuwanst\source\repos\MongoCTest1\MongoCTest1\MongoCTest1.obj   1   
  </code></pre>