Mongocxx header files issue

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.

2 Likes