General Programming Toggle

[C/C++] GCC Basic Tutorial

1. Compiling a simple program

C : gcc [C or C++ Source Code] -o [Output File]

C++ : g++ [C or C++ Source Code] -o [Output File]

 

2. Enable C++11

g++ -std=c++11 [C++ Source Code] -o [Output File]

Leave a Reply

ShutDown