Hi @chris_d,
Please take a look at get-started-cxx repository for a standalone example. It contains a simple example of connecting to MongoDB. This repository is part of the Get-Started project, see also get-started-readme for more information.
For example, to compile a C++ file:
c++ --std=c++11 getstarted.cpp -o getstarted $(pkg-config --cflags --libs libmongocxx)
Regards,
Wan.