[CXX-605] Unable to compile new CXX driver Created: 01/Jun/15  Updated: 11/Sep/19  Resolved: 11/Jun/15

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

Type: Task Priority: Major - P3
Reporter: Eloise Destelle Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.04, cmake2, ...
Latest cxx driver git cloned; mongo-c driver and bson library successfully built



 Description   

Compilation errors such as
Scanning dependencies of target mongocxx
[ 23%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o
In file included from /home/eloise/Downloads/mongo-cxx-driver/src/mongocxx/private/bulk_write.hpp:20:0,
from /home/eloise/Downloads/mongo-cxx-driver/src/mongocxx/bulk_write.cpp:19:
/home/eloise/Downloads/mongo-cxx-driver/src/mongocxx/private/libmongoc.hpp:31:63: error: ‘mongoc_bulk_operation_get_write_concern’ was not declared in this scope
#define MONGOCXX_LIBMONGOC_SYMBOL(name) constexpr auto name = mongoc_##name;
^
/home/eloise/Downloads/mongo-cxx-driver/src/mongocxx/private/libmongoc_symbols.hpp:21:1: note: in expansion of macro ‘MONGOCXX_LIBMONGOC_SYMBOL’
MONGOCXX_LIBMONGOC_SYMBOL(bulk_operation_get_write_concern)
^
make[2]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o] Error 1
make[1]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/all] Error 2
make: *** [all] Error 2



 Comments   
Comment by Andrew Morrow (Inactive) [ 11/Jun/15 ]

Hi ead -

I'm closing this ticket for now, please feel free to re-open it if you need any further help with the C++11 driver. We appreciate your testing the pre-release driver.

Comment by Adam Midvidy [ 01/Jun/15 ]

Hi Eloise,

It looks like you have an incorrect version of the C driver installed. The C++ Driver depends on the '1.2.0-dev' branch of the C driver. You can find instructions for installing the correct branch of the C driver here: https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver)#build-and-install-the-c-driver

Adam

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