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

posted on 2016-06-01 16:49  shoutcharter  阅读(112)  评论(0编辑  收藏  举报

导航