I have recently started learning C++ and, since I'm on Linux, I'm compiling using G++.
Now, the tutorial I'm following says
If you happen to have a Linux or Mac environment with development features, you should be able to compile any of the examples directly from a terminal just by including C++11 flags in the command for the compiler:
and tells me to compile using this command: g++ -std=c++0x MY_CODE.cpp -o MY_APP
.
Now, what I'm wondering, what is the point of the std=c++0x
flag? Is it required, or can I just run g++ MY_CODE.cpp -o MY_APP
?