This commit is contained in:
Dwight
2009-02-06 16:58:46 -05:00
parent 58d7ca3c1d
commit 21e105d3a2

View File

@@ -0,0 +1,20 @@
#include <iostream>
#include "client/dbclient.h"
// g++ -I ../.. -L ../.. tutorial.cpp -lmongoclient -lboost_thread -lboost_filesystem
using namespace mongo;
void run() {
DBClientConnection c;
}
int main() {
try {
run();
} catch( DBException &e ) {
cout << "caught " << e.what() << endl;
}
return 0;
}