MongoDB uses the [www.boost.org] C++ libraries. WindowsSee also the prebuilt libraries page. By default c:\boost\ is checked for the boost files. Include files should be under \boost\boost, and libraries in \boost\lib. First download the boost source. Then use the 7 Zip utility to extra the files. Place the extracted files in C:\boost. Then we will compile the required libraries. See buildscripts/buildboost.bat and buildscripts/buildboost64.bat for some helpers. > rem set PATH for compiler: > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" > > rem build the bjam make tool: > cd \boost\tools\jam\src\ > build.bat > > cd \boost > tools\jam\src\bin.ntx86\bjam --help > rem see also mongo/buildscripts/buildboost*.bat > rem build DEBUG libraries: > tools\jam\src\bin.ntx86\bjam variant=debug threading=multi --with-program_options --with-filesystem --with-date_time --with-thread > mkdir lib > move stage\lib\* lib\ LinuxIt's common with linux to install boost via a package manager – see the Building for Linux page for specifics. However one might also want to build from boost.org sources in some cases, for example to use a newer version of boost, to generate static libraries, etc. The following – far from comprehensive, rather an example – shows manually building of boost libraries on Linux. $ sudo ./bootstrap.sh $ ./b2 --help $ # now build it $ ./b2 $ #or $ ./b2 --with-program_options --with-filesystem --with-date_time --with-thread $ sudo ./b2 install TroubleshootingUnresolved external get_system_category() when linking MongoDB |

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus