#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #36
When I use g++ to compile a cpp file, I got this mistake:
error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
How to solve this problem?
(1) g++ -std=c++11 your_file.cpp -o your_program
(2) g++ -std=c++0x your_file.cpp -o your_program
When I use g++ to compile a cpp file, I got this mistake:
error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
How to solve this problem? (1) g++ -std=c++11 your_file.cpp -o your_program (2) g++ -std=c++0x your_file.cpp -o your_program