[CXX-2047] Error occured while installing mongocxx driver version-3.5.1 in windows 10 thorugh Visual Studio 2019. Created: 11/Jun/20  Updated: 11/Jun/20  Resolved: 11/Jun/20

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: 3.1.3, 3.5.0, 3.4.2, 3.5.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: palani kumar Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10, Visual Studio 2019


Attachments: PNG File error.PNG    
Issue Links:
Duplicate
duplicates CXX-2037 Cannot build on Windows with Visual S... Closed

 Description   

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.



 Comments   
Comment by Kevin Albertson [ 11/Jun/20 ]

Hello palanikumar0073@gmail.com, thank you for the report. This appears to be a duplicate of CXX-2037. Please watch that ticket for further updates.

Generated at Wed Feb 07 22:04:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.