$ clang++ --versionApple LLVM version 8.0.0 (clang-800.0.42.1)Target: x86_64-apple-darwin15.6.0Thread model: posixInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
In file included from /Users/rodrigobroggi/Documents/Workspace/cpp/mongo/mongo-cxx-driver/src/bsoncxx/array/element.cpp:15:In file included from /Users/rodrigobroggi/Documents/Workspace/cpp/mongo/mongo-cxx-driver/src/bsoncxx/array/element.hpp:20:In file included from /Users/rodrigobroggi/Documents/Workspace/cpp/mongo/mongo-cxx-driver/src/bsoncxx/document/element.hpp:20:/Users/rodrigobroggi/Documents/Workspace/cpp/mongo/mongo-cxx-driver/src/bsoncxx/stdx/string_view.hpp:22:10: fatal error: 'core/string.hpp' file not found#include <core/string.hpp>^1 error generated.make[2]: *** [src/bsoncxx/CMakeFiles/bsoncxx.dir/array/element.cpp.o] Error 1make[1]: *** [src/bsoncxx/CMakeFiles/bsoncxx.dir/all] Error 2make: *** [all] Error 2
$ clang++ --version
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
==> Upgrading 1 dependent:mongodb 3.4.9 -> 4.0.3mongodb: A full installation of Xcode.app 8.3.2 is required to compile this software.Installing just the Command Line Tools is not sufficient.Xcode 8.3.2 cannot be installed on macOS 10.11.You must upgrade your version of macOS.Error: mongodb: An unsatisfied requirement failed this build.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/79d7d4dc-0aae-44db-aa93-839ab0e76af3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c8433f34-1e4d-426b-967d-5e4b2c46239b%40googlegroups.com.
The following error showed up:root@a98ce7b12faa:/home/mongo-cxx-driver/build# cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
Any clue? I'm about to give up :( ...CMake Error at src/bsoncxx/CMakeLists.txt:81 (find_package):By not providing "Findlibbson-1.0.cmake" in CMAKE_MODULE_PATH this projecthas asked CMake to find a package configuration file provided by"libbson-1.0", but CMake did not find one.Could not find a package configuration file provided by "libbson-1.0"(requested version 1.13.0) with any of the following names:libbson-1.0Config.cmakelibbson-1.0-config.cmakeAdd the installation prefix of "libbson-1.0" to CMAKE_PREFIX_PATH or set"libbson-1.0_DIR" to a directory containing one of the above files. If"libbson-1.0" provides a separate development package or SDK, be sure ithas been installed.-- Configuring incomplete, errors occurred!
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAHX05qE7%3Dy7ArngcR30r5%3DySfL4Of3c7i-zj30E8uy9GwAdeYA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CADacLN6dCDvV_SoK3D5XiEZPr17CjT%3DuPWjkyociD5yBJ0sAnw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAHX05qFspsY8ZwWG3o%2B%2BpnJ7GiGrOY5SV2qWAyT8Hm91zqaowQ%40mail.gmail.com.
drwxr-xr-x 8 vagrant vagrant 4096 Oct 15 18:40 mongo-c-driver-1.13.0
-rw-rw-r-- 1 vagrant vagrant 6273122 Sep 17 15:12 mongo-c-driver-1.13.0.tar.gz
drwxrwxr-x 12 vagrant vagrant 4096 Oct 15 18:55 mongo-cxx-drivervagrant@entmdb4:~$ ls -al local/lib
total 3780
drwxrwxr-x 4 vagrant vagrant 4096 Oct 15 18:55 .
drwxrwxr-x 6 vagrant vagrant 4096 Oct 15 18:40 ..
drwxrwxr-x 8 vagrant vagrant 4096 Oct 15 18:55 cmake
lrwxrwxrwx 1 vagrant vagrant 16 Oct 15 18:40 libbson-1.0.so -> libbson-1.0.so.0
lrwxrwxrwx 1 vagrant vagrant 20 Oct 15 18:40 libbson-1.0.so.0 -> libbson-1.0.so.0.0.0
-rw-r--r-- 1 vagrant vagrant 254848 Oct 15 18:39 libbson-1.0.so.0.0.0
-rw-r--r-- 1 vagrant vagrant 405736 Oct 15 18:39 libbson-static-1.0.a
lrwxrwxrwx 1 vagrant vagrant 20 Oct 15 18:55 libbsoncxx.so -> libbsoncxx.so._noabi
-rw-r--r-- 1 vagrant vagrant 151352 Oct 15 18:47 libbsoncxx.so.3.4.0
lrwxrwxrwx 1 vagrant vagrant 19 Oct 15 18:55 libbsoncxx.so._noabi -> libbsoncxx.so.3.4.0
lrwxrwxrwx 1 vagrant vagrant 18 Oct 15 18:40 libmongoc-1.0.so -> libmongoc-1.0.so.0
lrwxrwxrwx 1 vagrant vagrant 22 Oct 15 18:40 libmongoc-1.0.so.0 -> libmongoc-1.0.so.0.0.0
-rw-r--r-- 1 vagrant vagrant 815168 Oct 15 18:39 libmongoc-1.0.so.0.0.0
-rw-r--r-- 1 vagrant vagrant 1459536 Oct 15 18:39 libmongoc-static-1.0.a
lrwxrwxrwx 1 vagrant vagrant 21 Oct 15 18:55 libmongocxx.so -> libmongocxx.so._noabi
-rw-r--r-- 1 vagrant vagrant 751456 Oct 15 18:49 libmongocxx.so.3.4.0
lrwxrwxrwx 1 vagrant vagrant 20 Oct 15 18:55 libmongocxx.so._noabi -> libmongocxx.so.3.4.0
drwxrwxr-x 2 vagrant vagrant 4096 Oct 15 18:55 pkgconfig
vagrant@entmdb4:~/code/cxx$ export PKG_CONFIG_PATH="$HOME/local/lib/pkgconfig"
vagrant@entmdb4:~/code/cxx$ c++ --std=c++11 test.cpp -o test $(pkg-config --cflags --libs libmongocxx) -Wl,-rpath,/home/vagrant/local/lib
vagrant@entmdb4:~/code/cxx$ ls -al
total 64
drwxrwxr-x 2 vagrant vagrant 4096 Oct 28 19:45 .
drwxrwxr-x 3 vagrant vagrant 4096 Oct 15 19:00 ..
-rwxrwxr-x 1 vagrant vagrant 51584 Oct 28 19:45 test
-rw-rw-r-- 1 vagrant vagrant 598 Oct 28 19:40 test.cpp
vagrant@entmdb4:~/code/cxx$ ./test
{ "_id" : { "$oid" : "5bc51e5177350044294fef12" }, "hello" : "world" }
{ "_id" : { "$oid" : "5bd64b41773500079e14eae2" }, "hello" : "Bob" }