官网教程安装mongodb c++driver

在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:

  • g++
  • clang
  • pentium-builder Try: sudo apt-get install 我此前已安装g++4.8,请问该如何解决????

编译中的c++要替换成g++,而且不一定支持c++11很好,可能需要升级到g++5.0

https://mongodb.net.cn/