With either G++ or Clang++ (Or the compiler of your choice), in the console navigate to your "main.cpp" and write as follows:
g++ main.cpp -std=c++11
or
clang++ main.cpp -std=c++11
Then you should have a file called "a.out".
To make the file executable, run this command:
chmod +x a.out
Finally to run, execute this:
./a.out
No comments:
Post a Comment