Skip to content

Glossary: Data Structures and Algorithms in C++

g++ -std=c++20 -Wall -Wextra

Also written: g++, clang++, -Wall, -Wextra, -std=c++20

A `g++` compile command that builds a program using the C++20 standard and turns on extra compiler warnings. The `-o` option names the output program, as in `g++ -std=c++20 -Wall -Wextra file.cpp -o file`.

Where the book teaches it

Related terms

-O2