On Tue, 10 Sep 2013 17:50:57 GMT, Craig Dillabaugh wrote:

  • MongoClient mongo_client;
  • auto imagelst = mongoclient.getCollection("mydb.images");

You need to get your MongoClient object from the connectMongoDB() function like this:

MongoClient mongo_client = connectMongoDB(url);

The url should be something like: mongodb://localhost/mydb