Blog Archive

Wednesday, September 3, 2014

c++ - Compiling C++11 with g++

http://stackoverflow.com/questions/10363646/compiling-c11-with-g

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.


No comments:

Post a Comment