[CXX-1012] Driver fail to compile on windows with VS2015 sp3. Created: 31/Aug/16  Updated: 31/Mar/17  Resolved: 07/Sep/16

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: 3.1.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alex Vilensky Assignee: David Golden
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CXX-1286 building mongodbcxx on Windows Closed
Related
is related to CXX-1019 Test with latest versions of Boost Closed

 Description   

I get the following message when trying to compile cxx driver:

C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\model\write.cpp(42): error C2338: Move-construct may thr
ow [C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\mongocxx.vcxproj]
C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\model\write.cpp(43): error C2338: Move-assign may throw
[C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\mongocxx.vcxproj]
C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\model\write.cpp(47): error C2338: Move-construct may thr
ow [C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\mongocxx.vcxproj]
C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\model\write.cpp(48): error C2338: Move-assign may throw
[C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\mongocxx.vcxproj]
C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\model\write.cpp(52): error C2338: Move-construct may thr
ow [C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\mongocxx.vcxproj]
C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\model\write.cpp(53): error C2338: Move-assign may throw
[C:\Users\alex.vilensky\Documents\mongo-cxx-driver\src\mongocxx\mongocxx.vcxproj]



 Comments   
Comment by David Golden [ 07/Sep/16 ]

Not yet, but I'll make a ticket for that.

Comment by Alex Vilensky [ 01/Sep/16 ]

1.59. Have you tested the cxx driver with the latest boost version yet?

Comment by David Golden [ 01/Sep/16 ]

Great! Which Boost version did you use?

Comment by Alex Vilensky [ 01/Sep/16 ]

Hi David, it worked. Thank you very much for your help. Have a nice weekend.

Comment by Alex Vilensky [ 01/Sep/16 ]

Hi David. let me give it a try.

Comment by David Golden [ 01/Sep/16 ]

Hi, Alex. It's compiling with the same compiler on our CI platform (example), but I noticed that we're using Boost 1.59 there. Could you please try upgrading Boost?

Comment by Alex Vilensky [ 31/Aug/16 ]

command used to build the driver: C:\Users\alex.vilensky\Documents\mongo-cxx-driver>cmake.exe -G "Visual Studio 14 2015 Win64" -DLIBBSON_DIR=c:\usr -DLIBMONGOC_DIR=c:\usr -DBSONCXX_POLY_USE_BOOST=1 -DBOOST_ROOT=C:\Users\alex.vilensky\Documents\boost\include\boost-1_57 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.\install

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