This post is a summary of the steps needed to build the MongoDB C++ driver with Mingw64.

This post is a summary of the steps needed to build the MongoDB C++ driver with Mingw64.
Long story short, you can’t drop a MongoDB collection without losing the indexes. However, in this post I offer a shell helper that will save the indexes and build them again, so you won’t have to worry about it.
I’ve found that there are only a few examples showing how to use MongoDB’s C++ client driver with a connection pool. Now for most applications a pool won’t be necessary, but in my case I needed to have multiple concurrent connections to a MongoDB server.