MongoDB using C
This document is an introduction to the usage of the MongoDB database from a C program. First, install MongoDB – see this blog for how to install and here we will work on MSYS software. What is MSYS software? MSYS is a collection of GNU utilities such as bash, make, gawk and grep to allow the building of applications and programs which depend on traditionally UNIX tools to be present. A common misunderstanding is MSYS is "UNIX on Windows", MSYS by itself does not contain a compiler or a C library, therefore does not give the ability to magically port UNIX programs over to Windows nor does it provide any UNIX specific functionality like case-sensitive filenames. Why are We using this? An example would be building a library that uses the build system. Users will typically run "./configure" then "make" to build it. The configure shell script requires a shell script interpreter which is not present on Windows systems, but provided by MSYS. To establish a conn...