new file
This commit is contained in:
20
client/examples/tutorial.cpp
Normal file
20
client/examples/tutorial.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user