在Linux中按照mongodb官网指导
Quickstart Guide (New Driver)安装mongodb c++driver,
安装的最后
使用命令c++ --std=c++11hellomongo.cpp -o hellomongo $(pkg-config --cflags --libs libmongocxx)时出现错误提示:
The program 'c++' can be found in the following packages:
编译中的c++要替换成g++,而且不一定支持c++11很好,可能需要升级到g++5.0