Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6926375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:54:38+00:00 2026-05-27T10:54:38+00:00

I have successfully installed and run mongodb on my macbook pro with the c++

  • 0

I have successfully installed and run mongodb on my macbook pro with
the c++ driver, but when I am trying to do the same on a computer in
school (need to do lengthy simulations) I encounter some errors. The
database itself works nicely, but when I try to compile my program I
get a lot of these errors:

/chalmers/users/X/thesis/libs/mongo-cxx-driver-nightly// 
libmongoclient.a(spin_lock.o): In function 
`__static_initialization_and_destruction_0(int, int)': 
spin_lock.cpp:(.text+0x44): undefined reference to 
`boost::system::get_system_category()'  spin_lock.cpp:(.text+0x50):
undefined reference to  `boost::system::get_generic_category()'... 

I have downloaded, built and tried boost versions 1.4.8, 1.4.7 and
1.44.0. As I understand get_system_category() and
get_generic_category() are both deprecated and replaced by the same
method name with the “get” dropped. However, on my macbook I use boost
1.4.7 and it works..
I have tried both nightly and latest 2.0 version of the c++ driver. I
still get the same error. The computer in school is a RedHat
Enterprice Linux Server. It doesn’t have libboost_system in the /usr/lib folder. Since I don’t have root access I have
downloaded and built the libraries needed (boost, libcurl) and I am
pointing to those in by makefile:

path = ./build/  

Ipath = -I/../mongo-cxx-driver-v2.0/mongo/ - I/.../boost_1_44_0/ 

Lpath = -L/.../mongo-cxx-driver-nightly/ -L/.../boost_1_44_0/stage/lib -L/.../curl/lib 

libs = -lboost_system -lmongoclient -lboost_thread -lboost_filesystem -lboost_program_options -lcurl  

db: sdc.o main.cpp 
        g++ main.cpp $(path)sdc.o $(Ipath) $(Lpath) $(libs) -o $  (path)db  

sdc.o: ../controller.h ../controller.cpp 
        g++ -c ../controller.cpp -o ./build/sdc.o $(Ipath)

Has anyone else had this problem? Does anyone see what I am doing
wrong here?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:54:39+00:00Added an answer on May 27, 2026 at 10:54 am

    It worked with boost version 1.42..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed php successfully on a Windows 7 machine but I can not
I have installed and run ejabberd successfully. I've tested the chat function and it
i need to ask some question about crystal report. I have successfully run crystal
I have just successfully installed CakePHP and I see that I can edit the
After much fiddling, I've managed to install the right ODBC driver and have successfully
I have successfully installed and configured msysGit Portable on my flash drive, and have
We have WFF 2.5 installed, and have used it to successfully configure a farm
I just successfully installed SimpleCV on my Windows 7 Dell XPS. I have a
Trying to get the gem mysql2 installed on ubuntu and I have tried all
I'm trying to setup ipython.el in emacs23. I've successfully installed it (after putting python-mode.el

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.