Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-268

For C++, <mongoc-read-prefs.h> has an error.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.92.0
    • Affects Version/s: 0.90.0
    • Component/s: None
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            fatherbrain Frank J. Lhota
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: