Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2047

Error occured while installing mongocxx driver version-3.5.1 in windows 10 thorugh Visual Studio 2019.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.3, 3.5.0, 3.4.2, 3.5.1
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Windows 10, Visual Studio 2019

      The environment and version details are mentioned below 

      • Visual Studio    - 2019
      • MongoDB         - 4.2.7  
      • Mongo C          - 1.18.0
      • Mongo Cxx       - 3.5.1
      • Boost                - 1.70.0
      • OS | Windows   - 10

      I have mongo c and Boost libraries of versions mentioned above. When Installing mongocxx (version mentioned above), it is throwing error "Must be trivially constructable". I have also tried with other versions(3.5.0, 3.4.1, 3.1.3) of mongo cxx which are also throwing same error.

      I have followed the instruction mentioned in the links to install mongoc and mongocxx lbraries.

      command used for installing : 

      1. cmake -G "Visual Studio 16 2019" -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS="/Zc:__cplusplus" -DBOOST_ROOT=C:\Boost -DCMAKE_PREFIX_PATH=C:\mongo-c-driver -DCMAKE_INSTALL_PREFIX=C:\mongo-cxx-driver ..
      2. msbuild.exe ALL_BUILD.vcxproj
      3. msbuild.exe INSTALL.vcxproj

      Building(step 2) ends in errors.

            Assignee:
            Unassigned Unassigned
            Reporter:
            palanikumar0073@gmail.com palani kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: