i have a brand new ubuntu server x64.
i installed the following packages
build-essential
libboost-all-dev
mongodb-dev
mongodb-10gen
Page http://packages.ubuntu.com/saucy/i386/libboost-thread1.54-dev/filelist shows that Ubuntu libboost-thread package has libboost_thread.so library file, not libboost_thread-mt.so
So, correct command is:
root@server:/home/user/Desktop# g++ mongotest.cpp -pthread -lmongoclient -lboost_thread -lboost_filesystem -lboost_program_options -lboost_system -o tutorial