>_ linuxcommand.dev
Startseite gcc
Programming

gcc

GNU C Compiler

Ubuntu CentOS Debian SUSE Fedora RHEL Arch Alpine macOS
Verified: 2026-03-04
Syntax
$gcc [options] <input files>
Optionen
-o
-Wall
-O2
-I
-L
Examples
$gcc hello.c -o hello
$gcc -Wall -O2 program.c -o program
$gcc main.c lib.c -o executable
Typical use cases
?
Standard usage
gcc --help
Note Compiles C and C++ code.
Export