mongodb 2.6 c++ driver tutorial linker error -


i trying run mongodb c++ driver tutorial, 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 error

/usr/bin/ld: obj/release/main.o||undefined reference symbol _zn5boost6system15system_categoryev'|

i using c++ driver 26compat , boost 1.55 on ubuntu gcc 4.8

some googling led me to

why gnu ld resolve symbols differently when linking executables vs shared objects?

but using --[no-]allow-shlib-undefined did not help.

any ideas?


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -