title: Mongo dB c++ driver installation issues in Windows
body: <p>I was installing mongo DB C++ driver on windows using  this <a href="http://mongocxx.org/mongocxx-v3/installation/windows/" rel="nofollow noreferrer">http://mongocxx.org/</a> . My aim is to write mongo dB code on Qt Creator using C++. so I am a beginner so the steps given in above link not in details . if anybody did this before please describe in simple manner...</p>
  <p>edited:
  i was trying to build the driver file using mingw64 shown in the link<a href="http://mongoc.org/libmongoc/current/installing.html" rel="nofollow noreferrer">http://mongoc.org/libmongoc/current/installing.html</a>  thi shows error .</p>
  <pre><code>LD-RD2@LD-RD2 MINGW64 ~/mongo-c-driver-1.18.0/cmake-build
  # cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
  CMake Error: CMake was unable to find a build program corresponding to &quot;Ninja&quot;.  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!
  See also &quot;C:/Users/LD-RD2/AppData/Roaming/SPB_Data/mongo-c-driver-1.18.0/cmake-build/CMakeFiles/CMakeOutput.log&quot;.
  </code></pre>
  <p>Updated: Error</p>
  <pre><code>LD-RD2@LD-RD2 MINGW64 ~/mongo-cxx-driver-r3.6.5/build2
  # ‘C:\Program Files\CMake\bin\cmake.exe’ … \
  -G &quot;MSYS Makefiles&quot;           \
  -DCMAKE_PREFIX_PATH=C:\Program Files (x86)\mongo-c-driver       \
  -DCMAKE_INSTALL_PREFIX=C:\mongo-cxx-driver ..
  -bash: syntax error near unexpected token `('
  -bash: -DCMAKE_INSTALL_PREFIX=C:mongo-cxx-driver: command not found
  
  LD-RD2@LD-RD2 MINGW64 ~/mongo-cxx-driver-r3.6.5/build2
  # cmake -G &quot;MSYS Makefiles&quot;           \
  -DCMAKE_PREFIX_PATH=C:\Program Files (x86)\mongo-c-driver       \
  -DCMAKE_INSTALL_PREFIX=C:\mongo-cxx-driver ..
  -bash: syntax error near unexpected token `('
  -bash: -DCMAKE_INSTALL_PREFIX=C:mongo-cxx-driver: command not found
  </code></pre>