[CXX-574] compilation fails: missing mongoc_bulk_operation_get_write_concern Created: 01/Apr/15  Updated: 08/Apr/15  Resolved: 01/Apr/15

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

Type: Bug Priority: Major - P3
Reporter: Yuval Hager Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Using the latest mongo-c-driver, I get:

[ 18%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o
In file included from /home/yuval/work/js/mongo-cxx-driver/src/mongocxx/private/libmongoc.hpp:32:0,
                 from /home/yuval/work/js/mongo-cxx-driver/src/mongocxx/private/bulk_write.hpp:20,
                 from /home/yuval/work/js/mongo-cxx-driver/src/mongocxx/bulk_write.cpp:19:
/home/yuval/work/js/mongo-cxx-driver/src/mongocxx/private/libmongoc_symbols.hpp:21:51: error: ‘mongoc_bulk_operation_get_write_concern’ was not declared in this scope
 MONGOCXX_LIBMONGOC_SYMBOL(bulk_operation_get_write_concern)
                                                   ^
src/mongocxx/CMakeFiles/mongocxx.dir/build.make:54: recipe for target 'src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp

It seems that this has moved to the private include file in mongo-c-driver, commit 6316bb9a



 Comments   
Comment by Adam Midvidy [ 01/Apr/15 ]

Great. Please do not hesitate to file tickets for issues you encounter with the driver - we are very excited to have external developers test it.

Comment by Yuval Hager [ 01/Apr/15 ]

You are correct, sorry about that.

EDIT: The problem is resolved after switching to 1.2.0-dev branch of mongo-c-driver. This issue can be closed.

Comment by Adam Midvidy [ 01/Apr/15 ]

yhager - apologies for the failure to document this - but the C++ driver depends on the 1.2.0-dev branch of libmongoc, which exposes this symbol.

EDIT: we actually mention this in the QuickStart guide: https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver)

Generated at Wed Feb 07 21:59:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.