jiegenghua / paper-reading

0 stars 0 forks source link

#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

Open jiegenghua opened 4 years ago

jiegenghua commented 4 years ago

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