- Notifications
You must be signed in to change notification settings - Fork456
The Official MongoDB driver for C language
License
mongodb/mongo-c-driver
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
mongo-c-driver is a project that includes two libraries:
- libmongoc, a client library written in C for MongoDB.
- libbson, a library providing useful routines related to building, parsing, and iterating BSON documents.
If libmongoc is not needed, it is possible to build and install only libbson.
This project usesSemantic Versioning.
The documentation is available atMongoDB C Driver Docs andhttps://www.mongoc.org.For issues with, questions about, or feedback for libmongoc, please look intooursupport channels. Pleasedo not email any of the libmongoc developers directly with issues orquestions - you're more likely to get an answer on theMongoDB Community Forums orStackOverflow.
Think you’ve found a bug? Want to see a new feature in libmongoc? Please open acase in our issue management tool, JIRA:
- Create an account and login.
- Navigate tothe CDRIVER project.
- ClickCreate Issue - Please provide as much information as possible about the issue type and how to reproduce it.
Bug reports in JIRA for all driver projects (i.e. CDRIVER, CSHARP, JAVA) and theCore Server (i.e. SERVER) project arepublic.
If you are having difficulty building the driver after reading the below instructions, please post ontheMongoDB Community Forums to ask for help. Please include in your post all of the followinginformation:
- The version of the driver you are trying to build (branch or tag).
- Examples:
r1.17(branch),1.9.5(tag)
- Examples:
- Host OS, version, and architecture.
- Examples: Windows 10 64-bit x86, Ubuntu 16.04 64-bit x86, macOS 11.0
- C Compiler and version.
- Examples: GCC 7.3.0, Visual Studio Community 2017, clang 3.9, XCode 9.3
- Run CMake with
--log-level=debugand--log-contextfor more verbose output. - The output of any
cmake,make, or other commands executed during the build. - The text of the error you encountered.
Failure to include the relevant information will delay a useful response.Here is a made-up example of a help request that provides the relevantinformation:
Hello, I'm trying to build the C driver with Kerberos support, frommongo-c-driver-1.9.5.tar.gz. I'm on Ubuntu 16.04, 64-bit Intel, with gcc5.4.0. I run CMake like:
$ cmake .-- The C compiler identification is ;GNU 5.4.0-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works... SNIPPED OUTPUT, but when you ask for help, include full output without any omissions ...-- Searching for libsasl2-- Not found (specify -DCMAKE_LIBRARY_PATH=/path/to/sasl/lib for SASL support)CMake Error at CMakeLists.txt:10 (_message): SASL not foundCan you tell me what I need to install? Thanks!
If you’ve identified a security vulnerability in a driver or any otherMongoDB project, please report it according to theinstructions here.
Detailed installation instructions are in the manual:https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/tutorials/obtaining-libraries/
- Getting Started Tutorial.
- MongoDB C Driver Examples.
- Tutorials, videos, and code examples using the MongoDB C Driver can also be found in theMongoDB Developer Center.
About
The Official MongoDB driver for C language
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.