[CDRIVER-268] For C++, <mongoc-read-prefs.h> has an error. Created: 13/Dec/13  Updated: 18/Mar/14  Resolved: 14/Jan/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 0.90.0
Fix Version/s: 0.92.0

Type: Bug Priority: Major - P3
Reporter: Frank J. Lhota Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Many projects use a mix of C and C++ code. If such a project used the MongoDB C driver, one would see the following error message from any C++ source that includes <mongoc.h>:

/usr/include/libmongoc-1.0/mongoc-read-prefs.h:34: error: use of enum ‘_mongoc_read_mode_t’ without previous declaration

Please make sure that all of the bson and mongo C headers are free of C++ errors.



 Comments   
Comment by Christian Hergert [ 14/Jan/14 ]

Fixed in master.

Comment by Lee Kangsan [ 10/Jan/14 ]

I think this issue is resolved in commit:eafbe5ff771f17ea5eb9a9c7444bb05e1bcebd62.

https://github.com/mongodb/mongo-c-driver/commit/eafbe5ff771f17ea5eb9a9c7444bb05e1bcebd62

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