mirror of https://github.com/CrimsonTome/tldr.git
gcc: add long flag (#6182)
parent
c5b0987e78
commit
4c0aa1ac0c
|
@ -5,15 +5,15 @@
|
||||||
|
|
||||||
- Kompiliere mehrere Quellcodedateien zu einer ausführbaren Datei:
|
- Kompiliere mehrere Quellcodedateien zu einer ausführbaren Datei:
|
||||||
|
|
||||||
`gcc {{pfad/zu/datei1.c}} {{pfad/zu/datei2.c}} -o {{pfad/zu/binärdatei}}`
|
`gcc {{pfad/zu/datei1.c}} {{pfad/zu/datei2.c}} --output {{pfad/zu/binärdatei}}`
|
||||||
|
|
||||||
- Erlaube Warnungen und debug-Symbole in der Ausgabedatei:
|
- Erlaube Warnungen und debug-Symbole in der Ausgabedatei:
|
||||||
|
|
||||||
`gcc {{pfad/zu/datei.c}} -Wall -Og -o {{pfad/zu/binärdatei}}`
|
`gcc {{pfad/zu/datei.c}} -Wall -Og --output {{pfad/zu/binärdatei}}`
|
||||||
|
|
||||||
- Inkludiere Bibliotheken aus anderen Verzeichnissen:
|
- Inkludiere Bibliotheken aus anderen Verzeichnissen:
|
||||||
|
|
||||||
`gcc {{pfad/zu/datei.c}} -o {{pfad/zu/binärdatei}} -I{{pfad/zu/headerdatei}} -L{{pfad/zu/bibliothek1}} -l{{pfad/zu/bibliothek2}}`
|
`gcc {{pfad/zu/datei.c}} --output {{pfad/zu/binärdatei}} -I{{pfad/zu/headerdatei}} -L{{pfad/zu/bibliothek1}} -l{{pfad/zu/bibliothek2}}`
|
||||||
|
|
||||||
- Kompiliere Quellcodedateien zu Assemblerinstruktionen:
|
- Kompiliere Quellcodedateien zu Assemblerinstruktionen:
|
||||||
|
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
|
|
||||||
- Compilar múltiplos arquivos de código fonte, produzindo um arquivo executável:
|
- Compilar múltiplos arquivos de código fonte, produzindo um arquivo executável:
|
||||||
|
|
||||||
`gcc {{arquivo_fonte1.c}} {{arquivo_fonte2.c}} -o {{arquivo_executável}}`
|
`gcc {{arquivo_fonte1.c}} {{arquivo_fonte2.c}} --output {{arquivo_executável}}`
|
||||||
|
|
||||||
- Habilitar avisos durante a compilação:
|
- Habilitar avisos durante a compilação:
|
||||||
|
|
||||||
`gcc {{arquivo_fonte.c}} -Wall -Og -o {{arquivo_executável}}`
|
`gcc {{arquivo_fonte.c}} -Wall -Og --output {{arquivo_executável}}`
|
||||||
|
|
||||||
- Incluir bibliotecas de um local diferente:
|
- Incluir bibliotecas de um local diferente:
|
||||||
|
|
||||||
`gcc {{arquivo_fonte.c}} -o {{arquivo_executável}} -I{{caminho/para/header}} -L{{caminho/para/biblioteca}} -l{{nome_biblioteca}}`
|
`gcc {{arquivo_fonte.c}} --output {{arquivo_executável}} -I{{caminho/para/header}} -L{{caminho/para/biblioteca}} -l{{nome_biblioteca}}`
|
||||||
|
|
||||||
- Compilar o código fonte para instruções Assembler:
|
- Compilar o código fonte para instruções Assembler:
|
||||||
|
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
|
|
||||||
- Compile multiple source files into executable:
|
- Compile multiple source files into executable:
|
||||||
|
|
||||||
`gcc {{source1.c}} {{source2.c}} -o {{executable}}`
|
`gcc {{source1.c}} {{source2.c}} --output {{executable}}`
|
||||||
|
|
||||||
- Allow warnings, debug symbols in output:
|
- Allow warnings, debug symbols in output:
|
||||||
|
|
||||||
`gcc {{source.c}} -Wall -Og -o {{executable}}`
|
`gcc {{source.c}} -Wall -Og --output {{executable}}`
|
||||||
|
|
||||||
- Include libraries from a different path:
|
- Include libraries from a different path:
|
||||||
|
|
||||||
`gcc {{source.c}} -o {{executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}`
|
`gcc {{source.c}} --output {{executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}`
|
||||||
|
|
||||||
- Compile source code into Assembler instructions:
|
- Compile source code into Assembler instructions:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue