>_ linuxcommand.dev
Startseite g++
Programming

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
Compile C++ programs
Set C++ standard
Compile templates
Note Compiles C++ code with STL support.
Export