>_ linuxcommand.dev
Startseite gcc
Programming

gcc

GNU C Compiler

Syntax
$gcc [options] <input files>
Optionen
-o
-Wall
-O2
-I
-L
Examples
Examples
$gcc hello.c -o hello
Examples
$gcc -Wall -O2 program.c -o program
Examples
$gcc main.c lib.c -o executable
Alternatives
Typical use cases
Compile C programs
Enable optimizations
Linking Libraries
Note Compiles C and C++ code.
Export