Compatibility
MongoDB Compatibility
The following compatibility table specifies the recommended version or versions of the MongoDB C++ Driver for use with a specific version of MongoDB.
The first column lists the driver version.
C++ Driver Version | MongoDB 8.0 | MongoDB 7.0 | MongoDB 6.0 | MongoDB 5.0 | MongoDB 4.4 | MongoDB 4.2 | MongoDB 4.0 | MongoDB 3.6 | MongoDB 3.4 | MongoDB 3.2 | MongoDB 3.0 | MongoDB 2.6 | MongoDB 2.4 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3.11 to 4.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||
3.8 to 3.10 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
3.7 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
3.6 | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
3.4 to 3.5 | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
3.3 | ✓ | ✓ | ✓ | ✓ | |||||||||
3.1 to 3.2 | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||||
3.0 | ✓ | ✓ | ✓ | ✓ |
Language Compatibility
The following compatibility table specifies the recommended version of the MongoDB C++ Driver for use with a specific version of C++.
The first column lists the driver version.
C++ Driver Version | C++20 | C++17 | C++14 | C++11 |
---|---|---|---|---|
3.8 to 4.0 | ✓ | ✓ | ✓ | ✓ |
3.0 to 3.7 | ✓ | ✓ | ✓ |
libmongoc Compatibility
The following compatibility table specifies the required version of libmongoc.
The first column lists the driver version.
C++ Driver Version | Minimum libmongoc Version |
---|---|
4.0.x | 1.29.0 |
3.11.x | 1.28.0 |
3.9.x and 3.10.x | 1.25.0 |
3.8.x | 1.24.0 |
3.7.x | 1.22.1 |
3.6.x | 1.17.0 |
3.5.x | 1.15.0 |
3.4.x | 1.13.0 |
3.3.x | 1.10.0 |
3.2.x | 1.9.2 |
3.1.4 | 1.7.0 |
3.1.0 to 3.1.3 | 1.5.0 |
3.0.1 to 3.0.3 | 1.3.4 |
3.0.0 | 1.3.1 |
For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.