C++11

238 down vote accepted

Flags (or compiler options) are nothing but ordinary command line arguments passed to the compiler executable.

Assuming you are invoking g++ from the command line (terminal):

$ g++ -std=c++11 your_file.cpp -o your_program

or

$ g++ -std=c++0x your_file.cpp -o your_program

if the above doesn't work.

shareimprove this answer
原文地址:https://www.cnblogs.com/gaoxianzhi/p/5550185.html