Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling MongoDB C++ Driver, Boost Error (Windows)
    text
    copied!<p>I am trying to compile the MongoDB C++ Driver on Windows. I am using the SCons "Make" Tool. and it is giving me a Boost Error, I have boot libraries but I am unsure how to get it to link with the SCons Build file. I am use to just adding the reference in VS. It looks like i need an environment variable reference but I am not sure. </p> <p>here is the Error:</p> <pre><code>scons mongoclient scons: Reading SConscript files ... Checking for C++ library boost_thread-mt... (cached) no Checking for C++ library boost_thread... (cached) no Checking for C++ library boost_filesystem-mt... (cached) no Checking for C++ library boost_filesystem... (cached) no Checking for C++ library boost_system-mt... (cached) no Checking for C++ library boost_system... (cached) no scons: done reading SConscript files. scons: Building targets ... cl /Fobuild\mongo\bson\oid.obj /c src\mongo\bson\oid.cpp /TP /nologo /EHsc /O2 / D_SCONS /DMONGO_EXPOSE_MACROS /Ibuild /Isrc /Ibuild\mongo /Isrc\mongo oid.cpp src\mongo/pch.h(48) : fatal error C1083: Cannot open include file: 'boost/shared _ptr.hpp': No such file or directory scons: *** [build\mongo\bson\oid.obj] Error 2 scons: building terminated because of errors. </code></pre> <p>in the SConstruct file I find the following but not sure what exactly means for finding the boost libraries.</p> <pre><code>boostLibs = ["thread", "filesystem", "system"] conf = Configure(env) for lib in boostLibs: if not conf.CheckLib(["boost_%s-mt" % lib, "boost_%s" % lib], language="C++"): if not win: Exit(1) conf.Finish() </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload