Mongo C++ Client Library Doesn't See My Boost Mongo C++ Client Library Doesn't See My Boost mongodb mongodb

Mongo C++ Client Library Doesn't See My Boost


I was having the same problem, I download and extract boost in /usr/include/boost_1_57_0 then I run

sudo apt-get install libboost-all-dev

Then in the directory i have the c++ drivers i run

sudo scons --extrapath=/usr/include/boost_1_57_0


Im guessing you didnt install the libs, just ran ./b2 rather than ./b2 install

Can you try the following?

scons --extrapath="/usr/local/boost_1_51_0/,/usr/local/boost_1_51_0/stage"


I solve this problem.

In the SCons, the order to test the boost libraries is wrong.

Open the SConstruct file and change the following line:

boostLibs = [ "regex", "thread", "system" ]

to

boostLibs = [ "system", "regex", "thread" ]

Cheers,