💾 Archived View for freeshell.de › tldr › g++.gmi captured on 2023-11-04 at 12:28:01. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

g++

Compiles C++ source files.
Part of GCC (GNU Compiler Collection).

More information.

g++ {path/to/source.cpp} -o {path/to/output_executable}
g++ {path/to/source.cpp} -Wall -o {path/to/output_executable}
g++ {path/to/source.cpp} -std={c++98|c++11|c++14|c++17} -o {path/to/output_executable}
g++ {path/to/source.cpp} -o {path/to/output_executable} -I{path/to/header} -L{path/to/library} -l{library_name}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY