>_ linuxcommand.dev
Startseite gcc
Programming

gcc

GNU C Compiler

Ubuntu CentOS Debian SUSE Fedora RHEL Arch Alpine macOS
Verifiziert: 2026-03-04
Syntax
$gcc [options] <input files>
Optionen
-o
-Wall
-O2
-I
-L
Beispiele
$gcc hello.c -o hello
$gcc -Wall -O2 program.c -o program
$gcc main.c lib.c -o executable
Typische Anwendungsfälle
?
Standardverwendung
gcc --help
Hinweis Kompiliert C- und C++-Code.
Export