g++
GNU C++ Compiler
Syntax
$g++ [options] <input files>
Optionen
-o
-std
-Wall
-O2
Examples
Examples
$g++ hello.cpp -o hello
Examples
$g++ -std=c++17 program.cpp -o program
Examples
$g++ main.cpp lib.cpp -o executable
Alternatives
Typical use cases
Note
Compiles C++ code with STL support.
Export