linux下编译项目,包含文件:
#include <vector>
#include <queue>
用到vector等,需要c++11支持,此时直接编译g++ -c Core.h -o Core.o
会报错:
#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
查看g++版本:g++ -v
发现已经是gcc version 4.8.2 ,4.7以上是支持c++11的,如果是低版本先更新一下。