I am trying to run the mongodb c++ driver tutorial, but I get into trouble
g++ -std=c++11 -Wall -pthread -lmongoclient -lboost_thread-mt -lboost_filesystem -lboost_program_options -lboost_system -O2 -I../../../mongo-client-install/include -c main.cpp -o obj/Release/main.o
this gives me an error
/usr/bin/ld: obj/Release/main.o||undefined reference to symbol _ZN5boost6system15system_categoryEv'|
I am using c++ driver 26compat and boost 1.55 on ubuntu with gcc 4.8
Some googling led me to
Why does GNU ld resolve symbols differently when linking executables vs shared objects?
but using --[no-]allow-shlib-undefined did not really help.
Any ideas?