#include "mongo/client/dbclient.h" give boost error

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Compile: g++ -Wall -std=c++11 -l boost_system -pthread -I mongo-client-install/include -L mongo-client-install/lib -l mongoclient -l boost_thread -l boost_regex main.cpp -o Lucy $(mysql_config --libs --cflags) 2>&1

      /tmp/ccHC5mIq.o: In function `__static_initialization_and_destruction_0':
      /usr/include/boost/system/error_code.hpp:222: undefined reference to `boost::system::generic_category()'
      /usr/include/boost/system/error_code.hpp:223: undefined reference to `boost::system::generic_category()'
      /usr/include/boost/system/error_code.hpp:224: undefined reference to `boost::system::system_category()'
      collect2: error: ld returned 1 exit status

      Anybody else getting message like the above? i came accross saying bosst haing a problem with ubuntu 14,04 is that true?

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Fransiskus Lukman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: