[CXX-1804] Cannot include header files Created: 01/Aug/19  Updated: 11/Sep/19  Resolved: 10/Sep/19

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: James Hyun Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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?



 Comments   
Comment by Rathi Gnanasekaran [ 10/Sep/19 ]

blackj0221@gmail.com This project is reporting bugs or feature requests in the CXX project. Please post your question in the mongodb-user list for broader feedback from MongoDB engineers and the community.

Generated at Wed Feb 07 22:03:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.