Hello. I have installed mongo-cxx-driver-r3.6.5 by following the instructions Linux (build from tar). Then I copied mongo-cxx-driver-r3.6.5/src/{bsoncxx, mongocxx} directories to /usr/local/include. The problem is that at compiling my testing code, some mongocxx source files are missing.
This is a produced error. “config.hpp” does not exist, but by inspecting the files I see that “config.hpp.in” does exist. Etc. There are several missing source files.
/usr/local/include/bsoncxx/config/prelude.hpp:68:10: fatal error: bsoncxx/config/config.hpp: No such file or directory #include <bsoncxx/config/config.hpp>
It seems unlikely that after following the instructions that you linked that it would be necessary to manually copy the header files. In fact, copying them as you did results in some missing components, as you found out. You should remove the /usr/local/include/{bsoncxx,mongocxx} directories that you manually copied and then use either CMake or pkg-config (depending on which suits your build setup) to get the appropriate flags that will allow the compiler and linker to locate the headers and libraries. This tutorial shows an example with pkg-config.