Cannot include header files

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Ubuntu Linux 18.04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I've installed 'libmongoc' and 'mongocxx' driver, but error is occurrend when I include it to the source code.

      https://imgur.com/a/3CQmzH1

      https://imgur.com/a/rnZEdiw

      My installation process of mongocxx is as follows:

      >cd mongo-cxx-driver/build
      >cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local - DBSONCXX_POLY_USE_MNM LSTC=1 ..
      >sudo make EP_mnmlstc_core
      >make
      >sudo make install
      

      Plus, I've found directory structure of 'libmongc' and 'mongocxx' driver have v_noabi folder. But the include path written in 'Quick Start Tutorial' doesn't have it.

      At last, my CMakeLists.txt file is as follows:

      ...
      SET(CMAKE_CXX_FLAGS "-std=c++17 -m64
             -DBSONCXX_POLY_USE_MNMLSTC=1
             -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1
             -pedantic -Wall -Wextra -Werror")
      ...
      

      How to I include the drivers correctly?

            Assignee:
            Unassigned
            Reporter:
            James Hyun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: