💾 Archived View for freeshell.de › tldr › g++.gmi captured on 2023-12-28 at 16:19:06. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Compiles C++ source files.
Part of GCC (GNU Compiler Collection).
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).