💾 Archived View for freeshell.de › tldr › gcc.gmi captured on 2024-05-26 at 15:24:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

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

gcc

Preprocess and compile C and C++ source files, then assemble and link them together.

More information.

gcc {path/to/source1.c path/to/source2.c ...} --output {path/to/output_executable}
gcc {path/to/source.c} -Wall -Og --output {path/to/output_executable}
gcc {path/to/source.c} --output {path/to/output_executable} -I{path/to/header} -L{path/to/library} -l{library_name}
gcc -S {path/to/source.c}
gcc -c {path/to/source.c}
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