$ g++ tutorial.cpp -lmongoclient -lboost_thread -lboost_filesystem -lboost_program_options -o tutorial
/tmp/ccwVAwNq.o: In function `mongo::DBClientConnection::DBClientConnection(bool, mongo::DBClientReplicaSet*, double)':
tutorial.cpp:(.text._ZN5mongo18DBClientConnectionC2EbPNS_18DBClientReplicaSetEd[_ZN5mongo18DBClientConnectionC5EbPNS_18DBClientReplicaSetEd]+0xdc): undefined reference to `mongo::DBClientConnection::_numConnections'
/tmp/ccwVAwNq.o: In function `mongo::DBClientConnection::~DBClientConnection()':
tutorial.cpp:(.text._ZN5mongo18DBClientConnectionD2Ev[_ZN5mongo18DBClientConnectionD5Ev]+0x2a): undefined reference to `mongo::DBClientConnection::_numConnections'
collect2: ld returned 1 exit status
Das ist das, was passiert, wenn ich nach
http://www.mongodb.org/pages/viewpage.action?pageId=21266598
den Versuch unternehme das File tutorial.cpp auszufuehren.