Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1804

Cannot include header files

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Ubuntu Linux 18.04

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            blackj0221@gmail.com James Hyun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: